Пример #1
0
        static bool n_Remove_Lorg_osmdroid_views_overlay_Overlay_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Osmdroid.Bonuspack.Overlays.FolderOverlay __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Bonuspack.Overlays.FolderOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.Views.Overlay.Overlay            p0     = global::Java.Lang.Object.GetObject <global::Osmdroid.Views.Overlay.Overlay> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Remove(p0);

            return(__ret);
        }
Пример #2
0
        public virtual bool Remove(global::Osmdroid.Views.Overlay.Overlay p0)
        {
            if (id_remove_Lorg_osmdroid_views_overlay_Overlay_ == IntPtr.Zero)
            {
                id_remove_Lorg_osmdroid_views_overlay_Overlay_ = JNIEnv.GetMethodID(class_ref, "remove", "(Lorg/osmdroid/views/overlay/Overlay;)Z");
            }

            bool __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallBooleanMethod(Handle, id_remove_Lorg_osmdroid_views_overlay_Overlay_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "remove", "(Lorg/osmdroid/views/overlay/Overlay;)Z"), new JValue(p0));
            }
            return(__ret);
        }