public unsafe void SaveCredential(global::Com.Microsoft.Identity.Common.Internal.Dto.Credential p0) { if (id_saveCredential_Lcom_microsoft_identity_common_internal_dto_Credential_ == IntPtr.Zero) { id_saveCredential_Lcom_microsoft_identity_common_internal_dto_Credential_ = JNIEnv.GetMethodID(class_ref, "saveCredential", "(Lcom/microsoft/identity/common/internal/dto/Credential;)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_saveCredential_Lcom_microsoft_identity_common_internal_dto_Credential_, __args); }
public override unsafe void SaveCredential(global::Com.Microsoft.Identity.Common.Internal.Dto.Credential credential) { const string __id = "saveCredential.(Lcom/microsoft/identity/common/internal/dto/Credential;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((credential == null) ? IntPtr.Zero : ((global::Java.Lang.Object)credential).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { global::System.GC.KeepAlive(credential); } }
public virtual unsafe string GenerateCacheValue(global::Com.Microsoft.Identity.Common.Internal.Dto.Credential credential) { const string __id = "generateCacheValue.(Lcom/microsoft/identity/common/internal/dto/Credential;)Ljava/lang/String;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((credential == null) ? IntPtr.Zero : ((global::Java.Lang.Object)credential).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(JNIEnv.GetString(__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(credential); } }
public override unsafe bool RemoveCredential(global::Com.Microsoft.Identity.Common.Internal.Dto.Credential credentialToRemove) { const string __id = "removeCredential.(Lcom/microsoft/identity/common/internal/dto/Credential;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((credentialToRemove == null) ? IntPtr.Zero : ((global::Java.Lang.Object)credentialToRemove).Handle); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod(__id, this, __args); return(__rm); } finally { global::System.GC.KeepAlive(credentialToRemove); } }
public unsafe string GenerateCacheValue(global::Com.Microsoft.Identity.Common.Internal.Dto.Credential p0) { if (id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_Credential_ == IntPtr.Zero) { id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_Credential_ = JNIEnv.GetMethodID(class_ref, "generateCacheValue", "(Lcom/microsoft/identity/common/internal/dto/Credential;)Ljava/lang/String;"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); var __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_generateCacheValue_Lcom_microsoft_identity_common_internal_dto_Credential_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }