static void n_OnLocationChanged_Lcom_tencent_map_geolocation_TencentLocation_ILjava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
        {
            global::Com.Tencent.Map.Geolocation.ITencentLocationListener __this = global::Java.Lang.Object.GetObject <global::Com.Tencent.Map.Geolocation.ITencentLocationListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Tencent.Map.Geolocation.ITencentLocation         p0     = (global::Com.Tencent.Map.Geolocation.ITencentLocation)global::Java.Lang.Object.GetObject <global::Com.Tencent.Map.Geolocation.ITencentLocation> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer);

            __this.OnLocationChanged(p0, p1, p2);
        }
#pragma warning restore 0649

        public void OnLocationChanged(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, int p1, string p2)
        {
            var __h = OnLocationChangedHandler;

            if (__h != null)
            {
                __h(sender, new LocationChangedEventArgs(p0, p1, p2));
            }
        }
Example #3
0
        public static unsafe bool IsFromGps(global::Com.Tencent.Map.Geolocation.ITencentLocation p0)
        {
            const string __id = "isFromGps.(Lcom/tencent/map/geolocation/TencentLocation;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args);
                return(__rm);
            } finally {
            }
        }
Example #4
0
        public static unsafe void SetRawGps(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, global::Android.Locations.Location p1)
        {
            const string __id = "setRawGps.(Lcom/tencent/map/geolocation/TencentLocation;Landroid/location/Location;)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 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
Example #5
0
        public static unsafe string GetRawQuery(global::Com.Tencent.Map.Geolocation.ITencentLocation p0)
        {
            const string __id = "getRawQuery.(Lcom/tencent/map/geolocation/TencentLocation;)Ljava/lang/String;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(JNIEnv.GetString(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Example #6
0
        public static unsafe global::Android.Locations.Location GetRawGps(global::Com.Tencent.Map.Geolocation.ITencentLocation p0)
        {
            const string __id = "getRawGps.(Lcom/tencent/map/geolocation/TencentLocation;)Landroid/location/Location;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.Locations.Location> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Example #7
0
        public static unsafe byte[] GetRawData(global::Com.Tencent.Map.Geolocation.ITencentLocation p0)
        {
            const string __id = "getRawData.(Lcom/tencent/map/geolocation/TencentLocation;)[B";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return((byte[])JNIEnv.GetArray(__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof(byte)));
            } finally {
            }
        }
Example #8
0
        public static unsafe double DistanceBetween(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, global::Com.Tencent.Map.Geolocation.ITencentLocation p1)
        {
            const string __id = "distanceBetween.(Lcom/tencent/map/geolocation/TencentLocation;Lcom/tencent/map/geolocation/TencentLocation;)D";

            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 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                var __rm = _members.StaticMethods.InvokeDoubleMethod(__id, __args);
                return(__rm);
            } finally {
            }
        }
Example #9
0
        public static unsafe void SetRawQuery(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, string p1)
        {
            const string __id      = "setRawQuery.(Lcom/tencent/map/geolocation/TencentLocation;Ljava/lang/String;)V";
            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);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public unsafe void OnLocationChanged(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, int p1, string p2)
        {
            if (id_onLocationChanged_Lcom_tencent_map_geolocation_TencentLocation_ILjava_lang_String_ == IntPtr.Zero)
            {
                id_onLocationChanged_Lcom_tencent_map_geolocation_TencentLocation_ILjava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onLocationChanged", "(Lcom/tencent/map/geolocation/TencentLocation;ILjava/lang/String;)V");
            }
            IntPtr  native_p2 = JNIEnv.NewString(p2);
            JValue *__args    = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue(p1);
            __args [2] = new JValue(native_p2);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onLocationChanged_Lcom_tencent_map_geolocation_TencentLocation_ILjava_lang_String_, __args);
            JNIEnv.DeleteLocalRef(native_p2);
        }
 public LocationChangedEventArgs(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, int p1, string p2)
 {
     this.p0 = p0;
     this.p1 = p1;
     this.p2 = p2;
 }
Example #12
0
        public static unsafe global::Com.Tencent.Map.Geolocation.ITencentLocation SetRawData(global::Com.Tencent.Map.Geolocation.ITencentLocation p0, byte[] p1)
        {
            const string __id      = "setRawData.(Lcom/tencent/map/geolocation/TencentLocation;[B)Lcom/tencent/map/geolocation/TencentLocation;";
            IntPtr       native_p1 = JNIEnv.NewArray(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.Tencent.Map.Geolocation.ITencentLocation> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                if (p1 != null)
                {
                    JNIEnv.CopyArray(native_p1, p1);
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        }