コード例 #1
0
        static bool n_RunOnFirstFix_Ljava_lang_Runnable_(IntPtr jnienv, IntPtr native__this, IntPtr native_runnable)
        {
            global::Osmdroid.Api.IMyLocationOverlay __this   = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.IRunnable             runnable = (global::Java.Lang.IRunnable)global::Java.Lang.Object.GetObject <global::Java.Lang.IRunnable> (native_runnable, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.RunOnFirstFix(runnable);

            return(__ret);
        }
コード例 #2
0
        static void n_OnStatusChanged_Ljava_lang_String_ILandroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_provider, int native_status, IntPtr native_extras)
        {
            global::Osmdroid.Api.IMyLocationOverlay __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string provider = JNIEnv.GetString(native_provider, JniHandleOwnership.DoNotTransfer);

            global::Android.Locations.Availability status = (global::Android.Locations.Availability)native_status;
            global::Android.OS.Bundle extras = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (native_extras, JniHandleOwnership.DoNotTransfer);
            __this.OnStatusChanged(provider, status, extras);
        }
コード例 #3
0
 static void n_DisableMyLocation(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.Api.IMyLocationOverlay __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.DisableMyLocation();
 }
コード例 #4
0
 static bool n_EnableMyLocation(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.Api.IMyLocationOverlay __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.EnableMyLocation());
 }
コード例 #5
0
 static IntPtr n_GetLastFix(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.Api.IMyLocationOverlay __this = global::Java.Lang.Object.GetObject <global::Osmdroid.Api.IMyLocationOverlay> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.LastFix));
 }