public unsafe MapView(global::Android.Content.Context p0, global::Com.Baidu.Mapapi.Map.BaiduMapOptions p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(MapView))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_Context_Lcom_baidu_mapapi_map_BaiduMapOptions_, __args);
            } finally {
            }
        }
        public static unsafe global::Com.Baidu.Mapapi.Map.MapFragment NewInstance(global::Com.Baidu.Mapapi.Map.BaiduMapOptions p0)
        {
            const string __id = "newInstance.(Lcom/baidu/mapapi/map/BaiduMapOptions;)Lcom/baidu/mapapi/map/MapFragment;";

            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::Com.Baidu.Mapapi.Map.MapFragment> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Example #3
0
 public static unsafe global::Com.Baidu.Mapapi.Map.MapFragment NewInstance(global::Com.Baidu.Mapapi.Map.BaiduMapOptions p0)
 {
     if (id_newInstance_Lcom_baidu_mapapi_map_BaiduMapOptions_ == IntPtr.Zero)
     {
         id_newInstance_Lcom_baidu_mapapi_map_BaiduMapOptions_ = JNIEnv.GetStaticMethodID(class_ref, "newInstance", "(Lcom/baidu/mapapi/map/BaiduMapOptions;)Lcom/baidu/mapapi/map/MapFragment;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.MapFragment __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.MapFragment> (JNIEnv.CallStaticObjectMethod(class_ref, id_newInstance_Lcom_baidu_mapapi_map_BaiduMapOptions_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public unsafe global::Com.Baidu.Mapapi.Map.BaiduMapOptions ZoomControlsPosition(global::Android.Graphics.Point p0)
 {
     if (id_zoomControlsPosition_Landroid_graphics_Point_ == IntPtr.Zero)
     {
         id_zoomControlsPosition_Landroid_graphics_Point_ = JNIEnv.GetMethodID(class_ref, "zoomControlsPosition", "(Landroid/graphics/Point;)Lcom/baidu/mapapi/map/BaiduMapOptions;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.BaiduMapOptions __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.BaiduMapOptions> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_zoomControlsPosition_Landroid_graphics_Point_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public unsafe global::Com.Baidu.Mapapi.Map.BaiduMapOptions MapStatus(global::Com.Baidu.Mapapi.Map.MapStatus p0)
 {
     if (id_mapStatus_Lcom_baidu_mapapi_map_MapStatus_ == IntPtr.Zero)
     {
         id_mapStatus_Lcom_baidu_mapapi_map_MapStatus_ = JNIEnv.GetMethodID(class_ref, "mapStatus", "(Lcom/baidu/mapapi/map/MapStatus;)Lcom/baidu/mapapi/map/BaiduMapOptions;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.BaiduMapOptions __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.BaiduMapOptions> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_mapStatus_Lcom_baidu_mapapi_map_MapStatus_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public unsafe TextureMapView(global::Android.Content.Context p0, global::Com.Baidu.Mapapi.Map.BaiduMapOptions p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/content/Context;Lcom/baidu/mapapi/map/BaiduMapOptions;)V";

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

            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 __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }