예제 #1
0
            static void n_OnImageGot_Ljava_lang_String_Landroid_graphics_Bitmap_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
            {
                global::Com.Mob.Tools.Gui.BitmapProcessor.IBitmapCallback __this = global::Java.Lang.Object.GetObject <global::Com.Mob.Tools.Gui.BitmapProcessor.IBitmapCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

                global::Android.Graphics.Bitmap p1 = global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (native_p1, JniHandleOwnership.DoNotTransfer);
                __this.OnImageGot(p0, p1);
            }
예제 #2
0
        public static unsafe void Process(string url, global::Com.Mob.Tools.Gui.BitmapProcessor.IBitmapCallback @callback)
        {
            const string __id       = "process.(Ljava/lang/String;Lcom/mob/tools/gui/BitmapProcessor$BitmapCallback;)V";
            IntPtr       native_url = JNIEnv.NewString(url);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_url);
                __args [1] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_url);
            }
        }
예제 #3
0
        public static unsafe void Process(string url, global::Com.Mob.Tools.Gui.BitmapProcessor.BitmapDesiredOptions bmOpt, bool useRamCache, bool useDiskCache, long diskCacheTime, global::Com.Mob.Tools.Gui.BitmapProcessor.IBitmapCallback @callback)
        {
            const string __id       = "process.(Ljava/lang/String;Lcom/mob/tools/gui/BitmapProcessor$BitmapDesiredOptions;ZZJLcom/mob/tools/gui/BitmapProcessor$BitmapCallback;)V";
            IntPtr       native_url = JNIEnv.NewString(url);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue(native_url);
                __args [1] = new JniArgumentValue((bmOpt == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bmOpt).Handle);
                __args [2] = new JniArgumentValue(useRamCache);
                __args [3] = new JniArgumentValue(useDiskCache);
                __args [4] = new JniArgumentValue(diskCacheTime);
                __args [5] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_url);
            }
        }