#pragma warning restore 0649 public void OnLocationChanged(global::Com.Amap.Api.Location.AMapLocation p0) { var __h = Handler; if (__h != null) { __h(sender, new AMapLocationEventArgs(p0)); } }
public unsafe void OnLocationChanged(global::Com.Amap.Api.Location.AMapLocation p0) { if (id_onLocationChanged_Lcom_amap_api_location_AMapLocation_ == IntPtr.Zero) { id_onLocationChanged_Lcom_amap_api_location_AMapLocation_ = JNIEnv.GetMethodID(class_ref, "onLocationChanged", "(Lcom/amap/api/location/AMapLocation;)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_onLocationChanged_Lcom_amap_api_location_AMapLocation_, __args); }
static void n_OnLocationChanged_Lcom_amap_api_location_AMapLocation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Amap.Api.Location.IAMapLocationListener __this = global::Java.Lang.Object.GetObject <global::Com.Amap.Api.Location.IAMapLocationListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Amap.Api.Location.AMapLocation p0 = global::Java.Lang.Object.GetObject <global::Com.Amap.Api.Location.AMapLocation> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnLocationChanged(p0); }
public AMapLocationEventArgs(global::Com.Amap.Api.Location.AMapLocation p0) { this.p0 = p0; }