static void n_RequestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2) { global::Com.Mapbox.Android.Core.Location.ILocationEngine __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mapbox.Android.Core.Location.LocationEngineRequest p0 = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.LocationEngineRequest> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p1 = (global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback)global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback> (native_p1, JniHandleOwnership.DoNotTransfer); global::Android.OS.Looper p2 = global::Java.Lang.Object.GetObject <global::Android.OS.Looper> (native_p2, JniHandleOwnership.DoNotTransfer); __this.RequestLocationUpdates(p0, p1, p2); }
public unsafe void RemoveLocationUpdates(global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p0) { if (id_removeLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineCallback_ == IntPtr.Zero) { id_removeLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineCallback_ = JNIEnv.GetMethodID(class_ref, "removeLocationUpdates", "(Lcom/mapbox/android/core/location/LocationEngineCallback;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_removeLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineCallback_, __args); }
static void n_OnFailure_Ljava_lang_Exception_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Exception p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Exception> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnFailure(p0); }
static void n_GetLastLocation_Lcom_mapbox_android_core_location_LocationEngineCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mapbox.Android.Core.Location.ILocationEngine __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngine> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p0 = (global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback)global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback> (native_p0, JniHandleOwnership.DoNotTransfer); __this.GetLastLocation(p0); }
public unsafe void RequestLocationUpdates(global::Com.Mapbox.Android.Core.Location.LocationEngineRequest p0, global::Com.Mapbox.Android.Core.Location.ILocationEngineCallback p1, global::Android.OS.Looper p2) { if (id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_ == IntPtr.Zero) { id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_ = JNIEnv.GetMethodID(class_ref, "requestLocationUpdates", "(Lcom/mapbox/android/core/location/LocationEngineRequest;Lcom/mapbox/android/core/location/LocationEngineCallback;Landroid/os/Looper;)V"); } JValue *__args = stackalloc JValue [3]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_requestLocationUpdates_Lcom_mapbox_android_core_location_LocationEngineRequest_Lcom_mapbox_android_core_location_LocationEngineCallback_Landroid_os_Looper_, __args); }