示例#1
0
 static void n_HandleTile_Landroid_graphics_Canvas_ILorg_osmdroid_tileprovider_MapTile_II(IntPtr jnienv, IntPtr native__this, IntPtr native_pCanvas, int pTileSizePx, IntPtr native_pTile, int pX, int pY)
 {
     global::Osmdroid.Util.TileLooper      __this  = global::Java.Lang.Object.GetObject <global::Osmdroid.Util.TileLooper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Canvas       pCanvas = global::Java.Lang.Object.GetObject <global::Android.Graphics.Canvas> (native_pCanvas, JniHandleOwnership.DoNotTransfer);
     global::Osmdroid.TileProvider.MapTile pTile   = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_pTile, JniHandleOwnership.DoNotTransfer);
     __this.HandleTile(pCanvas, pTileSizePx, pTile, pX, pY);
 }
示例#2
0
 static void n_PutTile_Lorg_osmdroid_tileprovider_MapTile_Landroid_graphics_drawable_Drawable_(IntPtr jnienv, IntPtr native__this, IntPtr native_aTile, IntPtr native_aDrawable)
 {
     global::Osmdroid.TileProvider.MapTileCache  __this    = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTileCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Osmdroid.TileProvider.MapTile       aTile     = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_aTile, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Drawables.Drawable aDrawable = global::Java.Lang.Object.GetObject <global::Android.Graphics.Drawables.Drawable> (native_aDrawable, JniHandleOwnership.DoNotTransfer);
     __this.PutTile(aTile, aDrawable);
 }
示例#3
0
        static IntPtr n_GetMapTile_Lorg_osmdroid_tileprovider_MapTile_(IntPtr jnienv, IntPtr native__this, IntPtr native_aTile)
        {
            global::Osmdroid.TileProvider.MapTileCache __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTileCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.MapTile      aTile  = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_aTile, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.GetMapTile(aTile));

            return(__ret);
        }
示例#4
0
        static bool n_ContainsTile_Lorg_osmdroid_tileprovider_MapTile_(IntPtr jnienv, IntPtr native__this, IntPtr native_aTile)
        {
            global::Osmdroid.TileProvider.MapTileCache __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTileCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.MapTile      aTile  = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_aTile, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.ContainsTile(aTile);

            return(__ret);
        }
示例#5
0
        static IntPtr n_GetTileRelativeFilenameString_Lorg_osmdroid_tileprovider_MapTile_(IntPtr jnienv, IntPtr native__this, IntPtr native_aTile)
        {
            global::Osmdroid.TileProvider.TileSource.ITileSource __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.TileSource.ITileSource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.MapTile aTile = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_aTile, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewString(__this.GetTileRelativeFilenameString(aTile));

            return(__ret);
        }
示例#6
0
 public void OnTileRemoved(global::Osmdroid.TileProvider.MapTile mapTile)
 {
     if (id_onTileRemoved_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
     {
         id_onTileRemoved_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "onTileRemoved", "(Lorg/osmdroid/tileprovider/MapTile;)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_onTileRemoved_Lorg_osmdroid_tileprovider_MapTile_, new JValue(mapTile));
 }
示例#7
0
#pragma warning restore 0649

            public void OnTileRemoved(global::Osmdroid.TileProvider.MapTile mapTile)
            {
                var __h = Handler;

                if (__h != null)
                {
                    __h(sender, new TileRemovedEventArgs(mapTile));
                }
            }
示例#8
0
        static IntPtr n_GetInputStream_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_(IntPtr jnienv, IntPtr native__this, IntPtr native_pTileSource, IntPtr native_pTile)
        {
            global::Osmdroid.TileProvider.Modules.GEMFFileArchive __this      = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.Modules.GEMFFileArchive> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.TileSource.ITileSource  pTileSource = (global::Osmdroid.TileProvider.TileSource.ITileSource)global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.TileSource.ITileSource> (native_pTileSource, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.MapTile pTile = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_pTile, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(__this.GetInputStream(pTileSource, pTile));

            return(__ret);
        }
示例#9
0
        static bool n_SaveFile_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_Ljava_io_InputStream_(IntPtr jnienv, IntPtr native__this, IntPtr native_pTileSourceInfo, IntPtr native_pTile, IntPtr native_pStream)
        {
            global::Osmdroid.TileProvider.Modules.IFilesystemCache __this          = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.Modules.IFilesystemCache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.TileSource.ITileSource   pTileSourceInfo = (global::Osmdroid.TileProvider.TileSource.ITileSource)global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.TileSource.ITileSource> (native_pTileSourceInfo, JniHandleOwnership.DoNotTransfer);
            global::Osmdroid.TileProvider.MapTile pTile = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_pTile, JniHandleOwnership.DoNotTransfer);
            System.IO.Stream pStream = global::Android.Runtime.InputStreamInvoker.FromJniHandle(native_pStream, JniHandleOwnership.DoNotTransfer);
            bool             __ret   = __this.SaveFile(pTileSourceInfo, pTile, pStream);

            return(__ret);
        }
示例#10
0
        public string GetTileRelativeFilenameString(global::Osmdroid.TileProvider.MapTile aTile)
        {
            if (id_getTileRelativeFilenameString_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
            {
                id_getTileRelativeFilenameString_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "getTileRelativeFilenameString", "(Lorg/osmdroid/tileprovider/MapTile;)Ljava/lang/String;");
            }
            string __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(Handle, id_getTileRelativeFilenameString_Lorg_osmdroid_tileprovider_MapTile_, new JValue(aTile)), JniHandleOwnership.TransferLocalRef);

            return(__ret);
        }
示例#11
0
        public virtual void PutTile(global::Osmdroid.TileProvider.MapTile aTile, global::Android.Graphics.Drawables.Drawable aDrawable)
        {
            if (id_putTile_Lorg_osmdroid_tileprovider_MapTile_Landroid_graphics_drawable_Drawable_ == IntPtr.Zero)
            {
                id_putTile_Lorg_osmdroid_tileprovider_MapTile_Landroid_graphics_drawable_Drawable_ = JNIEnv.GetMethodID(class_ref, "putTile", "(Lorg/osmdroid/tileprovider/MapTile;Landroid/graphics/drawable/Drawable;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_putTile_Lorg_osmdroid_tileprovider_MapTile_Landroid_graphics_drawable_Drawable_, new JValue(aTile), new JValue(aDrawable));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "putTile", "(Lorg/osmdroid/tileprovider/MapTile;Landroid/graphics/drawable/Drawable;)V"), new JValue(aTile), new JValue(aDrawable));
            }
        }
示例#12
0
        public virtual global::Android.Graphics.Drawables.Drawable GetMapTile(global::Osmdroid.TileProvider.MapTile aTile)
        {
            if (id_getMapTile_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
            {
                id_getMapTile_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "getMapTile", "(Lorg/osmdroid/tileprovider/MapTile;)Landroid/graphics/drawable/Drawable;");
            }

            global::Android.Graphics.Drawables.Drawable __ret;
            if (GetType() == ThresholdType)
            {
                __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Drawables.Drawable> (JNIEnv.CallObjectMethod(Handle, id_getMapTile_Lorg_osmdroid_tileprovider_MapTile_, new JValue(aTile)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = global::Java.Lang.Object.GetObject <global::Android.Graphics.Drawables.Drawable> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getMapTile", "(Lorg/osmdroid/tileprovider/MapTile;)Landroid/graphics/drawable/Drawable;"), new JValue(aTile)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }
示例#13
0
        public override string GetTileURLString(global::Osmdroid.TileProvider.MapTile aTile)
        {
            if (id_getTileURLString_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
            {
                id_getTileURLString_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "getTileURLString", "(Lorg/osmdroid/tileprovider/MapTile;)Ljava/lang/String;");
            }

            string __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(Handle, id_getTileURLString_Lorg_osmdroid_tileprovider_MapTile_, new JValue(aTile)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = JNIEnv.GetString(JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getTileURLString", "(Lorg/osmdroid/tileprovider/MapTile;)Ljava/lang/String;"), new JValue(aTile)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }
示例#14
0
        public virtual bool ContainsTile(global::Osmdroid.TileProvider.MapTile aTile)
        {
            if (id_containsTile_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
            {
                id_containsTile_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "containsTile", "(Lorg/osmdroid/tileprovider/MapTile;)Z");
            }

            bool __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallBooleanMethod(Handle, id_containsTile_Lorg_osmdroid_tileprovider_MapTile_, new JValue(aTile));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "containsTile", "(Lorg/osmdroid/tileprovider/MapTile;)Z"), new JValue(aTile));
            }
            return(__ret);
        }
示例#15
0
        public MapTileRequestState(global::Osmdroid.TileProvider.MapTile mapTile, global::Osmdroid.TileProvider.Modules.MapTileModuleProviderBase[] providers, global::Osmdroid.TileProvider.IMapTileProviderCallback @callback) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_providers = JNIEnv.NewArray(providers);;

            if (GetType() != typeof(MapTileRequestState))
            {
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/osmdroid/tileprovider/MapTile;[Lorg/osmdroid/tileprovider/modules/MapTileModuleProviderBase;Lorg/osmdroid/tileprovider/IMapTileProviderCallback;)V", new JValue(mapTile), new JValue(native_providers), new JValue(@callback)),
                    JniHandleOwnership.TransferLocalRef);
                global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lorg/osmdroid/tileprovider/MapTile;[Lorg/osmdroid/tileprovider/modules/MapTileModuleProviderBase;Lorg/osmdroid/tileprovider/IMapTileProviderCallback;)V", new JValue(mapTile), new JValue(native_providers), new JValue(@callback));
                if (providers != null)
                {
                    JNIEnv.CopyArray(native_providers, providers);
                    JNIEnv.DeleteLocalRef(native_providers);
                }
                return;
            }

            if (id_ctor_Lorg_osmdroid_tileprovider_MapTile_arrayLorg_osmdroid_tileprovider_modules_MapTileModuleProviderBase_Lorg_osmdroid_tileprovider_IMapTileProviderCallback_ == IntPtr.Zero)
            {
                id_ctor_Lorg_osmdroid_tileprovider_MapTile_arrayLorg_osmdroid_tileprovider_modules_MapTileModuleProviderBase_Lorg_osmdroid_tileprovider_IMapTileProviderCallback_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/osmdroid/tileprovider/MapTile;[Lorg/osmdroid/tileprovider/modules/MapTileModuleProviderBase;Lorg/osmdroid/tileprovider/IMapTileProviderCallback;)V");
            }
            SetHandle(
                global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_osmdroid_tileprovider_MapTile_arrayLorg_osmdroid_tileprovider_modules_MapTileModuleProviderBase_Lorg_osmdroid_tileprovider_IMapTileProviderCallback_, new JValue(mapTile), new JValue(native_providers), new JValue(@callback)),
                JniHandleOwnership.TransferLocalRef);
            JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lorg_osmdroid_tileprovider_MapTile_arrayLorg_osmdroid_tileprovider_modules_MapTileModuleProviderBase_Lorg_osmdroid_tileprovider_IMapTileProviderCallback_, new JValue(mapTile), new JValue(native_providers), new JValue(@callback));
            if (providers != null)
            {
                JNIEnv.CopyArray(native_providers, providers);
                JNIEnv.DeleteLocalRef(native_providers);
            }
        }
示例#16
0
 public abstract string GetTileURLString(global::Osmdroid.TileProvider.MapTile aTile);
示例#17
0
        public virtual global::System.IO.Stream GetInputStream(global::Osmdroid.TileProvider.TileSource.ITileSource pTileSource, global::Osmdroid.TileProvider.MapTile pTile)
        {
            if (id_getInputStream_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_ == IntPtr.Zero)
            {
                id_getInputStream_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_ = JNIEnv.GetMethodID(class_ref, "getInputStream", "(Lorg/osmdroid/tileprovider/tilesource/ITileSource;Lorg/osmdroid/tileprovider/MapTile;)Ljava/io/InputStream;");
            }

            global::System.IO.Stream __ret;
            if (GetType() == ThresholdType)
            {
                __ret = global::Android.Runtime.InputStreamInvoker.FromJniHandle(JNIEnv.CallObjectMethod(Handle, id_getInputStream_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_, new JValue(pTileSource), new JValue(pTile)), JniHandleOwnership.TransferLocalRef);
            }
            else
            {
                __ret = global::Android.Runtime.InputStreamInvoker.FromJniHandle(JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getInputStream", "(Lorg/osmdroid/tileprovider/tilesource/ITileSource;Lorg/osmdroid/tileprovider/MapTile;)Ljava/io/InputStream;"), new JValue(pTileSource), new JValue(pTile)), JniHandleOwnership.TransferLocalRef);
            }
            return(__ret);
        }
示例#18
0
 public override void HandleTile(global::Android.Graphics.Canvas pCanvas, int pTileSizePx, global::Osmdroid.TileProvider.MapTile pTile, int pX, int pY)
 {
     if (id_handleTile_Landroid_graphics_Canvas_ILorg_osmdroid_tileprovider_MapTile_II == IntPtr.Zero)
     {
         id_handleTile_Landroid_graphics_Canvas_ILorg_osmdroid_tileprovider_MapTile_II = JNIEnv.GetMethodID(class_ref, "handleTile", "(Landroid/graphics/Canvas;ILorg/osmdroid/tileprovider/MapTile;II)V");
     }
     JNIEnv.CallVoidMethod(Handle, id_handleTile_Landroid_graphics_Canvas_ILorg_osmdroid_tileprovider_MapTile_II, new JValue(pCanvas), new JValue(pTileSizePx), new JValue(pTile), new JValue(pX), new JValue(pY));
 }
示例#19
0
 public abstract void HandleTile(global::Android.Graphics.Canvas pCanvas, int pTileSizePx, global::Osmdroid.TileProvider.MapTile pTile, int pX, int pY);
示例#20
0
 static void n_OnTileRemoved_Lorg_osmdroid_tileprovider_MapTile_(IntPtr jnienv, IntPtr native__this, IntPtr native_mapTile)
 {
     global::Osmdroid.TileProvider.LRUMapTileCache.ITileRemovedListener __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.LRUMapTileCache.ITileRemovedListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Osmdroid.TileProvider.MapTile mapTile = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (native_mapTile, JniHandleOwnership.DoNotTransfer);
     __this.OnTileRemoved(mapTile);
 }
示例#21
0
 public TileRemovedEventArgs(global::Osmdroid.TileProvider.MapTile mapTile)
 {
     this.mapTile = mapTile;
 }
示例#22
0
        public bool SaveFile(global::Osmdroid.TileProvider.TileSource.ITileSource pTileSourceInfo, global::Osmdroid.TileProvider.MapTile pTile, global::System.IO.Stream pStream)
        {
            if (id_saveFile_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_Ljava_io_InputStream_ == IntPtr.Zero)
            {
                id_saveFile_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_Ljava_io_InputStream_ = JNIEnv.GetMethodID(class_ref, "saveFile", "(Lorg/osmdroid/tileprovider/tilesource/ITileSource;Lorg/osmdroid/tileprovider/MapTile;Ljava/io/InputStream;)Z");
            }
            IntPtr native_pStream = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(pStream);
            bool   __ret          = JNIEnv.CallBooleanMethod(Handle, id_saveFile_Lorg_osmdroid_tileprovider_tilesource_ITileSource_Lorg_osmdroid_tileprovider_MapTile_Ljava_io_InputStream_, new JValue(pTileSourceInfo), new JValue(pTile), new JValue(native_pStream));

            JNIEnv.DeleteLocalRef(native_pStream);
            return(__ret);
        }
示例#23
0
 static int n_GetZoomLevel(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.TileProvider.MapTile __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTile> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ZoomLevel);
 }