示例#1
0
            public unsafe CheckFileReadPermissionTask(global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileReadPermissionListener listener)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                const string __id = "(Lcom/mapbox/mapboxsdk/utils/FileUtils$OnCheckFileReadPermissionListener;)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 {
                }
            }
示例#2
0
 static void n_OnReadPermissionGranted(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileReadPermissionListener __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Utils.FileUtils.IOnCheckFileReadPermissionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.OnReadPermissionGranted();
 }