Beispiel #1
0
 static void n_OnLocationChanged_Landroid_location_Location_Lorg_osmdroid_views_overlay_mylocation_IMyLocationProvider_(IntPtr jnienv, IntPtr native__this, IntPtr native_location, IntPtr native_source)
 {
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer __this = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Locations.Location location = global::Java.Lang.Object.GetObject <global::Android.Locations.Location> (native_location, JniHandleOwnership.DoNotTransfer);
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider source = (global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider)global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (native_source, JniHandleOwnership.DoNotTransfer);
     __this.OnLocationChanged(location, source);
 }
Beispiel #2
0
        static bool n_StartLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_(IntPtr jnienv, IntPtr native__this, IntPtr native_myLocationConsumer)
        {
            global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider __this             = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer myLocationConsumer = (global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer)global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer> (native_myLocationConsumer, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.StartLocationProvider(myLocationConsumer);

            return(__ret);
        }
Beispiel #3
0
 public void OnLocationChanged(global::Android.Locations.Location location, global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider source)
 {
     if (id_onLocationChanged_Landroid_location_Location_Lorg_osmdroid_views_overlay_mylocation_IMyLocationProvider_ == IntPtr.Zero)
     {
         id_onLocationChanged_Landroid_location_Location_Lorg_osmdroid_views_overlay_mylocation_IMyLocationProvider_ = JNIEnv.GetMethodID(class_ref, "onLocationChanged", "(Landroid/location/Location;Lorg/osmdroid/views/overlay/mylocation/IMyLocationProvider;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onLocationChanged_Landroid_location_Location_Lorg_osmdroid_views_overlay_mylocation_IMyLocationProvider_, new JValue(location), new JValue(source));
 }
Beispiel #4
0
 static IntPtr n_GetLastKnownLocation(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider __this = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.LastKnownLocation));
 }
Beispiel #5
0
 static void n_StopLocationProvider(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider __this = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.StopLocationProvider();
 }