public unsafe ExpectedPage(string expectedUrlStartsWith, global::Com.Microsoft.Identity.Common.Internal.UI.Webview.IOnPageLoadedCallback @callback) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Ljava/lang/String;Lcom/microsoft/identity/common/internal/ui/webview/OnPageLoadedCallback;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_expectedUrlStartsWith = JNIEnv.NewString(expectedUrlStartsWith); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue(native_expectedUrlStartsWith); __args [1] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); 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_expectedUrlStartsWith); global::System.GC.KeepAlive(@callback); } }
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); } }