Пример #1
0
        static IntPtr n_InvokeAnchor_Lorg_osmdroid_api_Marker_Anchor_(IntPtr jnienv, IntPtr native__this, IntPtr native_aAnchor)
        {
            global::Osmdroid.Api.Marker        __this  = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Marker> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.Api.Marker.Anchor aAnchor = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Marker.Anchor> (native_aAnchor, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.InvokeAnchor(aAnchor));

            return(__ret);
        }
Пример #2
0
            public static global::Osmdroid.Api.Marker.Anchor ValueOf(string name)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lorg/osmdroid/api/Marker$Anchor;");
                }
                IntPtr native_name = JNIEnv.NewString(name);

                global::Osmdroid.Api.Marker.Anchor __ret = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Marker.Anchor> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, new JValue(native_name)), JniHandleOwnership.TransferLocalRef);
                JNIEnv.DeleteLocalRef(native_name);
                return(__ret);
            }
Пример #3
0
        public virtual global::Osmdroid.Api.Marker InvokeAnchor(global::Osmdroid.Api.Marker.Anchor aAnchor)
        {
            if (id_anchor_Lorg_osmdroid_api_Marker_Anchor_ == IntPtr.Zero)
            {
                id_anchor_Lorg_osmdroid_api_Marker_Anchor_ = JNIEnv.GetMethodID(class_ref, "anchor", "(Lorg/osmdroid/api/Marker$Anchor;)Lorg/osmdroid/api/Marker;");
            }

            global::Osmdroid.Api.Marker __ret;
            if (GetType() == ThresholdType)
            {
                __ret = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Marker> (JNIEnv.CallObjectMethod(Handle, id_anchor_Lorg_osmdroid_api_Marker_Anchor_, new JValue(aAnchor)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.Marker> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "anchor", "(Lorg/osmdroid/api/Marker$Anchor;)Lorg/osmdroid/api/Marker;"), new JValue(aAnchor)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }