public unsafe PKeyAuthChallengeHandler(global::Android.Webkit.WebView view, global::Com.Microsoft.Identity.Common.Internal.UI.Webview.Challengehandlers.IAuthorizationCompletionCallback completionCallback) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/webkit/WebView;Lcom/microsoft/identity/common/internal/ui/webview/challengehandlers/IAuthorizationCompletionCallback;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((view == null) ? IntPtr.Zero : ((global::Java.Lang.Object)view).Handle);
                __args [1] = new JniArgumentValue((completionCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)completionCallback).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                global::System.GC.KeepAlive(view);
                global::System.GC.KeepAlive(completionCallback);
            }
        }
예제 #2
0
        public unsafe AzureActiveDirectoryWebViewClient(global::Android.App.Activity activity, global::Com.Microsoft.Identity.Common.Internal.UI.Webview.Challengehandlers.IAuthorizationCompletionCallback completionCallback, global::Com.Microsoft.Identity.Common.Internal.UI.Webview.IOnPageLoadedCallback pageLoadedCallback, string redirectUrl) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/app/Activity;Lcom/microsoft/identity/common/internal/ui/webview/challengehandlers/IAuthorizationCompletionCallback;Lcom/microsoft/identity/common/internal/ui/webview/OnPageLoadedCallback;Ljava/lang/String;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_redirectUrl = JNIEnv.NewString(redirectUrl);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [4];
                __args [0] = new JniArgumentValue((activity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)activity).Handle);
                __args [1] = new JniArgumentValue((completionCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)completionCallback).Handle);
                __args [2] = new JniArgumentValue((pageLoadedCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)pageLoadedCallback).Handle);
                __args [3] = new JniArgumentValue(native_redirectUrl);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_redirectUrl);
                global::System.GC.KeepAlive(activity);
                global::System.GC.KeepAlive(completionCallback);
                global::System.GC.KeepAlive(pageLoadedCallback);
            }
        }