Esempio n. 1
0
 static void n_MapTileRequestCompleted_Lorg_osmdroid_tileprovider_MapTileRequestState_Landroid_graphics_drawable_Drawable_(IntPtr jnienv, IntPtr native__this, IntPtr native_aState, IntPtr native_aDrawable)
 {
     global::Osmdroid.TileProvider.IMapTileProviderCallback __this    = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.IMapTileProviderCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Osmdroid.TileProvider.MapTileRequestState      aState    = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTileRequestState> (native_aState, JniHandleOwnership.DoNotTransfer);
     global::Android.Graphics.Drawables.Drawable            aDrawable = global::Java.Lang.Object.GetObject <global::Android.Graphics.Drawables.Drawable> (native_aDrawable, JniHandleOwnership.DoNotTransfer);
     __this.MapTileRequestCompleted(aState, aDrawable);
 }
Esempio n. 2
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);
            }
        }
Esempio n. 3
0
 static bool n_UseDataConnection(IntPtr jnienv, IntPtr native__this)
 {
     global::Osmdroid.TileProvider.IMapTileProviderCallback __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.IMapTileProviderCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.UseDataConnection());
 }
Esempio n. 4
0
 static void n_MapTileRequestFailed_Lorg_osmdroid_tileprovider_MapTileRequestState_(IntPtr jnienv, IntPtr native__this, IntPtr native_aState)
 {
     global::Osmdroid.TileProvider.IMapTileProviderCallback __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.IMapTileProviderCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Osmdroid.TileProvider.MapTileRequestState      aState = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.MapTileRequestState> (native_aState, JniHandleOwnership.DoNotTransfer);
     __this.MapTileRequestFailed(aState);
 }