コード例 #1
0
        public unsafe InfoWindow(global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0, global::Com.Baidu.Mapapi.Model.LatLng p1, int p2, global::Com.Baidu.Mapapi.Map.InfoWindow.IOnInfoWindowClickListener p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                if (((object)this).GetType() != typeof(InfoWindow))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/baidu/mapapi/map/BitmapDescriptor;Lcom/baidu/mapapi/model/LatLng;ILcom/baidu/mapapi/map/InfoWindow$OnInfoWindowClickListener;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/baidu/mapapi/map/BitmapDescriptor;Lcom/baidu/mapapi/model/LatLng;ILcom/baidu/mapapi/map/InfoWindow$OnInfoWindowClickListener;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_baidu_mapapi_map_BitmapDescriptor_Lcom_baidu_mapapi_model_LatLng_ILcom_baidu_mapapi_map_InfoWindow_OnInfoWindowClickListener_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_baidu_mapapi_map_BitmapDescriptor_Lcom_baidu_mapapi_model_LatLng_ILcom_baidu_mapapi_map_InfoWindow_OnInfoWindowClickListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/baidu/mapapi/map/BitmapDescriptor;Lcom/baidu/mapapi/model/LatLng;ILcom/baidu/mapapi/map/InfoWindow$OnInfoWindowClickListener;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_baidu_mapapi_map_BitmapDescriptor_Lcom_baidu_mapapi_model_LatLng_ILcom_baidu_mapapi_map_InfoWindow_OnInfoWindowClickListener_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_baidu_mapapi_map_BitmapDescriptor_Lcom_baidu_mapapi_model_LatLng_ILcom_baidu_mapapi_map_InfoWindow_OnInfoWindowClickListener_, __args);
            } finally {
            }
        }
コード例 #2
0
        public unsafe void UpdateInfoWindowBitmapDescriptor(global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0)
        {
            const string __id = "updateInfoWindowBitmapDescriptor.(Lcom/baidu/mapapi/map/BitmapDescriptor;)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 global::Com.Baidu.Mapapi.Map.GroundOverlayOptions InvokeImage(global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0)
        {
            const string __id = "image.(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/GroundOverlayOptions;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.GroundOverlayOptions> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
コード例 #4
0
 public unsafe global::Com.Baidu.Mapapi.Map.MarkerOptions InvokeIcon(global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0)
 {
     if (id_icon_Lcom_baidu_mapapi_map_BitmapDescriptor_ == IntPtr.Zero)
     {
         id_icon_Lcom_baidu_mapapi_map_BitmapDescriptor_ = JNIEnv.GetMethodID(class_ref, "icon", "(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.MarkerOptions __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.MarkerOptions> (JNIEnv.CallObjectMethod(Handle, id_icon_Lcom_baidu_mapapi_map_BitmapDescriptor_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static unsafe global::Com.Baidu.Mapapi.Map.BitmapDescriptor FromView(global::Android.Views.View p0)
 {
     if (id_fromView_Landroid_view_View_ == IntPtr.Zero)
     {
         id_fromView_Landroid_view_View_ = JNIEnv.GetStaticMethodID(class_ref, "fromView", "(Landroid/view/View;)Lcom/baidu/mapapi/map/BitmapDescriptor;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.BitmapDescriptor __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.BitmapDescriptor> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromView_Landroid_view_View_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Com.Baidu.Mapapi.Map.BitmapDescriptor FromAssetWithDpi(string p0)
        {
            if (id_fromAssetWithDpi_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_fromAssetWithDpi_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "fromAssetWithDpi", "(Ljava/lang/String;)Lcom/baidu/mapapi/map/BitmapDescriptor;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Com.Baidu.Mapapi.Map.BitmapDescriptor __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.BitmapDescriptor> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromAssetWithDpi_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
コード例 #7
0
        public unsafe InfoWindow(global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0, global::Com.Baidu.Mapapi.Model.LatLng p1, int p2, global::Com.Baidu.Mapapi.Map.InfoWindow.IOnInfoWindowClickListener p3)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/baidu/mapapi/map/BitmapDescriptor;Lcom/baidu/mapapi/model/LatLng;ILcom/baidu/mapapi/map/InfoWindow$OnInfoWindowClickListener;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __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);
                __args [2] = new JniArgumentValue(p2);
                __args [3] = new JniArgumentValue((p3 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p3).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
コード例 #8
0
        public unsafe MyLocationConfiguration(global::Com.Baidu.Mapapi.Map.MyLocationConfiguration.LocationMode p0, bool p1, global::Com.Baidu.Mapapi.Map.BitmapDescriptor p2)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                if (GetType() != typeof(MyLocationConfiguration))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_baidu_mapapi_map_MyLocationConfiguration_LocationMode_ZLcom_baidu_mapapi_map_BitmapDescriptor_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_baidu_mapapi_map_MyLocationConfiguration_LocationMode_ZLcom_baidu_mapapi_map_BitmapDescriptor_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_baidu_mapapi_map_MyLocationConfiguration_LocationMode_ZLcom_baidu_mapapi_map_BitmapDescriptor_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_baidu_mapapi_map_MyLocationConfiguration_LocationMode_ZLcom_baidu_mapapi_map_BitmapDescriptor_, __args);
            } finally {
            }
        }
コード例 #9
0
 static void n_SetBitmapDescriptor_Lcom_baidu_mapapi_map_BitmapDescriptor_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Baidu.Mapapi.Map.InfoWindow       __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.InfoWindow> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Baidu.Mapapi.Map.BitmapDescriptor p0     = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.BitmapDescriptor> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.BitmapDescriptor = p0;
 }
コード例 #10
0
        public unsafe MyLocationConfiguration(global::Com.Baidu.Mapapi.Map.MyLocationConfiguration.LocationMode p0, bool p1, global::Com.Baidu.Mapapi.Map.BitmapDescriptor p2, int p3, int p4)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;II)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [5];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(p1);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                __args [3] = new JniArgumentValue(p3);
                __args [4] = new JniArgumentValue(p4);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }