예제 #1
0
        public unsafe OfflineTilePyramidRegionDefinition(string styleURL, global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds bounds, double minZoom, double maxZoom, float pixelRatio, bool includeIdeographs)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/String;Lcom/mapbox/mapboxsdk/geometry/LatLngBounds;DDFZ)V";

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

            IntPtr native_styleURL = JNIEnv.NewString(styleURL);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue(native_styleURL);
                __args [1] = new JniArgumentValue((bounds == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bounds).Handle);
                __args [2] = new JniArgumentValue(minZoom);
                __args [3] = new JniArgumentValue(maxZoom);
                __args [4] = new JniArgumentValue(pixelRatio);
                __args [5] = new JniArgumentValue(includeIdeographs);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_styleURL);
            }
        }
        public virtual unsafe void InvalidateRegion(global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds bounds)
        {
            const string __id = "invalidateRegion.(Lcom/mapbox/mapboxsdk/geometry/LatLngBounds;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((bounds == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bounds).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
 static void n_InvalidateRegion_Lcom_mapbox_mapboxsdk_geometry_LatLngBounds_(IntPtr jnienv, IntPtr native__this, IntPtr native_bounds)
 {
     global::Com.Mapbox.Mapboxsdk.Style.Sources.CustomGeometrySource __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Style.Sources.CustomGeometrySource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds bounds = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds> (native_bounds, JniHandleOwnership.DoNotTransfer);
     __this.InvalidateRegion(bounds);
 }
예제 #4
0
        public unsafe VisibleRegion(global::Com.Mapbox.Mapboxsdk.Geometry.LatLng farLeft, global::Com.Mapbox.Mapboxsdk.Geometry.LatLng farRight, global::Com.Mapbox.Mapboxsdk.Geometry.LatLng nearLeft, global::Com.Mapbox.Mapboxsdk.Geometry.LatLng nearRight, global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds latLngBounds)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/mapbox/mapboxsdk/geometry/LatLng;Lcom/mapbox/mapboxsdk/geometry/LatLng;Lcom/mapbox/mapboxsdk/geometry/LatLng;Lcom/mapbox/mapboxsdk/geometry/LatLng;Lcom/mapbox/mapboxsdk/geometry/LatLngBounds;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [5];
                __args [0] = new JniArgumentValue((farLeft == null) ? IntPtr.Zero : ((global::Java.Lang.Object)farLeft).Handle);
                __args [1] = new JniArgumentValue((farRight == null) ? IntPtr.Zero : ((global::Java.Lang.Object)farRight).Handle);
                __args [2] = new JniArgumentValue((nearLeft == null) ? IntPtr.Zero : ((global::Java.Lang.Object)nearLeft).Handle);
                __args [3] = new JniArgumentValue((nearRight == null) ? IntPtr.Zero : ((global::Java.Lang.Object)nearRight).Handle);
                __args [4] = new JniArgumentValue((latLngBounds == null) ? IntPtr.Zero : ((global::Java.Lang.Object)latLngBounds).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
        public static unsafe global::Com.Mapbox.Mapboxsdk.Camera.ICameraUpdate NewLatLngBounds(global::Com.Mapbox.Mapboxsdk.Geometry.LatLngBounds bounds, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)
        {
            const string __id = "newLatLngBounds.(Lcom/mapbox/mapboxsdk/geometry/LatLngBounds;IIII)Lcom/mapbox/mapboxsdk/camera/CameraUpdate;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [5];
                __args [0] = new JniArgumentValue((bounds == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bounds).Handle);
                __args [1] = new JniArgumentValue(paddingLeft);
                __args [2] = new JniArgumentValue(paddingTop);
                __args [3] = new JniArgumentValue(paddingRight);
                __args [4] = new JniArgumentValue(paddingBottom);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Camera.ICameraUpdate> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }