Пример #1
0
#pragma warning restore 0649

        public void OnReceiveLocation(global::Com.Baidu.Location.BDLocation p0)
        {
            var __h = OnReceiveLocationHandler;

            if (__h != null)
            {
                __h(sender, new ReceiveLocationEventArgs(p0));
            }
        }
        public override unsafe void OnReceiveLocation(global::Com.Baidu.Location.BDLocation p0)
        {
            const string __id = "onReceiveLocation.(Lcom/baidu/location/BDLocation;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Пример #3
0
        public unsafe void OnReceiveLocation(global::Com.Baidu.Location.BDLocation p0)
        {
            if (id_onReceiveLocation_Lcom_baidu_location_BDLocation_ == IntPtr.Zero)
            {
                id_onReceiveLocation_Lcom_baidu_location_BDLocation_ = JNIEnv.GetMethodID(class_ref, "onReceiveLocation", "(Lcom/baidu/location/BDLocation;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onReceiveLocation_Lcom_baidu_location_BDLocation_, __args);
        }
Пример #4
0
        public virtual unsafe void OnNotify(global::Com.Baidu.Location.BDLocation p0, float p1)
        {
            const string __id = "onNotify.(Lcom/baidu/location/BDLocation;F)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(p1);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Пример #5
0
        public static unsafe global::Com.Baidu.Location.BDLocation GetBDLocationInCoorType(global::Com.Baidu.Location.BDLocation p0, string p1)
        {
            if (id_getBDLocationInCoorType_Lcom_baidu_location_BDLocation_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getBDLocationInCoorType_Lcom_baidu_location_BDLocation_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "getBDLocationInCoorType", "(Lcom/baidu/location/BDLocation;Ljava/lang/String;)Lcom/baidu/location/BDLocation;");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                global::Com.Baidu.Location.BDLocation __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDLocation> (JNIEnv.CallStaticObjectMethod(class_ref, id_getBDLocationInCoorType_Lcom_baidu_location_BDLocation_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public virtual unsafe void OnNotify(global::Com.Baidu.Location.BDLocation p0, float p1)
        {
            if (id_onNotify_Lcom_baidu_location_BDLocation_F == IntPtr.Zero)
            {
                id_onNotify_Lcom_baidu_location_BDLocation_F = JNIEnv.GetMethodID(class_ref, "onNotify", "(Lcom/baidu/location/BDLocation;F)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onNotify_Lcom_baidu_location_BDLocation_F, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onNotify", "(Lcom/baidu/location/BDLocation;F)V"), __args);
                }
            } finally {
            }
        }
 public abstract void OnReceiveLocation(global::Com.Baidu.Location.BDLocation p0);
 static void n_OnReceiveLocation_Lcom_baidu_location_BDLocation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Baidu.Location.BDAbstractLocationListener __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDAbstractLocationListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Baidu.Location.BDLocation p0 = global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDLocation> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnReceiveLocation(p0);
 }
Пример #9
0
        public static unsafe global::Com.Baidu.Location.BDLocation GetBDLocationInCoorType(global::Com.Baidu.Location.BDLocation p0, string p1)
        {
            const string __id      = "getBDLocationInCoorType.(Lcom/baidu/location/BDLocation;Ljava/lang/String;)Lcom/baidu/location/BDLocation;";
            IntPtr       native_p1 = JNIEnv.NewString(p1);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(native_p1);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDLocation> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Пример #10
0
 public ReceiveLocationEventArgs(global::Com.Baidu.Location.BDLocation p0)
 {
     this.p0 = p0;
 }
 static void n_OnNotify_Lcom_baidu_location_BDLocation_F(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, float p1)
 {
     global::Com.Baidu.Location.BDNotifyListener __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDNotifyListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Baidu.Location.BDLocation       p0     = global::Java.Lang.Object.GetObject <global::Com.Baidu.Location.BDLocation> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnNotify(p0, p1);
 }