public unsafe void OnSuccess(global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult p0) { if (id_onSuccess_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_ == IntPtr.Zero) { id_onSuccess_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_ = JNIEnv.GetMethodID(class_ref, "onSuccess", "(Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onSuccess_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_, __args); }
public unsafe global::Android.OS.Bundle BundleFromAuthenticationResult(global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult p0, string p1) { if (id_bundleFromAuthenticationResult_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_Ljava_lang_String_ == IntPtr.Zero) { id_bundleFromAuthenticationResult_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "bundleFromAuthenticationResult", "(Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;Ljava/lang/String;)Landroid/os/Bundle;"); } IntPtr native_p1 = JNIEnv.NewString(p1); JValue *__args = stackalloc JValue [2]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JValue(native_p1); var __ret = global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_bundleFromAuthenticationResult_Lcom_microsoft_identity_common_internal_result_ILocalAuthenticationResult_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.DeleteLocalRef(native_p1); return(__ret); }
public unsafe ADALUserInfo(global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult localAuthenticationResult) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((localAuthenticationResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object)localAuthenticationResult).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(localAuthenticationResult); } }
public virtual unsafe global::Android.OS.Bundle BundleFromAuthenticationResult(global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult authenticationResult, string negotiatedBrokerProtocolVersion) { const string __id = "bundleFromAuthenticationResult.(Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;Ljava/lang/String;)Landroid/os/Bundle;"; IntPtr native_negotiatedBrokerProtocolVersion = JNIEnv.NewString(negotiatedBrokerProtocolVersion); try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((authenticationResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object)authenticationResult).Handle); __args [1] = new JniArgumentValue(native_negotiatedBrokerProtocolVersion); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_negotiatedBrokerProtocolVersion); global::System.GC.KeepAlive(authenticationResult); } }
public static unsafe global::Com.Microsoft.Identity.Client.AcquireTokenSilentParameters SilentParametersFromInteractive(global::Com.Microsoft.Identity.Client.AcquireTokenParameters acquireTokenParameters, global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult localAuthenticationResult) { const string __id = "silentParametersFromInteractive.(Lcom/microsoft/identity/client/AcquireTokenParameters;Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;)Lcom/microsoft/identity/client/AcquireTokenSilentParameters;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((acquireTokenParameters == null) ? IntPtr.Zero : ((global::Java.Lang.Object)acquireTokenParameters).Handle); __args [1] = new JniArgumentValue((localAuthenticationResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object)localAuthenticationResult).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Client.AcquireTokenSilentParameters> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(acquireTokenParameters); global::System.GC.KeepAlive(localAuthenticationResult); } }