public static unsafe void RemoveBitmapFromRamCache(string url, global::Com.Mob.Tools.Gui.BitmapProcessor.BitmapDesiredOptions bitmapDesiredOptions) { const string __id = "removeBitmapFromRamCache.(Ljava/lang/String;Lcom/mob/tools/gui/BitmapProcessor$BitmapDesiredOptions;)V"; IntPtr native_url = JNIEnv.NewString(url); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(native_url); __args [1] = new JniArgumentValue((bitmapDesiredOptions == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bitmapDesiredOptions).Handle); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { JNIEnv.DeleteLocalRef(native_url); } }
public static unsafe void Process(string url, global::Com.Mob.Tools.Gui.BitmapProcessor.BitmapDesiredOptions bmOpt, global::Com.Mob.Tools.Gui.BitmapProcessor.IBitmapCallback @callback) { const string __id = "process.(Ljava/lang/String;Lcom/mob/tools/gui/BitmapProcessor$BitmapDesiredOptions;Lcom/mob/tools/gui/BitmapProcessor$BitmapCallback;)V"; IntPtr native_url = JNIEnv.NewString(url); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue(native_url); __args [1] = new JniArgumentValue((bmOpt == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bmOpt).Handle); __args [2] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { JNIEnv.DeleteLocalRef(native_url); } }
public static unsafe global::Android.Graphics.Bitmap GetBitmapFromCache(string url, global::Com.Mob.Tools.Gui.BitmapProcessor.BitmapDesiredOptions bitmapDesiredOptions) { const string __id = "getBitmapFromCache.(Ljava/lang/String;Lcom/mob/tools/gui/BitmapProcessor$BitmapDesiredOptions;)Landroid/graphics/Bitmap;"; IntPtr native_url = JNIEnv.NewString(url); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(native_url); __args [1] = new JniArgumentValue((bitmapDesiredOptions == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bitmapDesiredOptions).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Android.Graphics.Bitmap> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_url); } }