public virtual unsafe global::Com.Microsoft.Identity.Client.AcquireTokenParameters.Builder WithPrompt(global::Com.Microsoft.Identity.Client.Prompt prompt) { const string __id = "withPrompt.(Lcom/microsoft/identity/client/Prompt;)Lcom/microsoft/identity/client/AcquireTokenParameters$Builder;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((prompt == null) ? IntPtr.Zero : ((global::Java.Lang.Object)prompt).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Client.AcquireTokenParameters.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(prompt); } }
public virtual unsafe void SignInAgain(global::Android.App.Activity activity, string[] scopes, global::Com.Microsoft.Identity.Client.Prompt prompt, global::Com.Microsoft.Identity.Client.IAuthenticationCallback @callback) { const string __id = "signInAgain.(Landroid/app/Activity;[Ljava/lang/String;Lcom/microsoft/identity/client/Prompt;Lcom/microsoft/identity/client/AuthenticationCallback;)V"; IntPtr native_scopes = JNIEnv.NewArray(scopes); try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue((activity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)activity).Handle); __args [1] = new JniArgumentValue(native_scopes); __args [2] = new JniArgumentValue((prompt == null) ? IntPtr.Zero : ((global::Java.Lang.Object)prompt).Handle); __args [3] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { if (scopes != null) { JNIEnv.CopyArray(native_scopes, scopes); JNIEnv.DeleteLocalRef(native_scopes); } global::System.GC.KeepAlive(activity); global::System.GC.KeepAlive(scopes); global::System.GC.KeepAlive(prompt); global::System.GC.KeepAlive(@callback); } }