public unsafe CheckFileWritePermissionTask(global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileWritePermissionListener listener) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/mapbox/mapboxsdk/utils/FileUtils$OnCheckFileWritePermissionListener;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
static void n_OnWritePermissionGranted(IntPtr jnienv, IntPtr native__this) { global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileWritePermissionListener __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileWritePermissionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnWritePermissionGranted(); }