public unsafe void SetLogLevel(global::Com.Microsoft.Identity.Client.Logger.LogLevel logLevel) { const string __id = "setLogLevel.(Lcom/microsoft/identity/client/Logger$LogLevel;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((logLevel == null) ? IntPtr.Zero : ((global::Java.Lang.Object)logLevel).Handle); _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args); } finally { global::System.GC.KeepAlive(logLevel); } }
public unsafe void Log(string p0, global::Com.Microsoft.Identity.Client.Logger.LogLevel p1, string p2, bool p3) { if (id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z == IntPtr.Zero) { id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z = JNIEnv.GetMethodID(class_ref, "log", "(Ljava/lang/String;Lcom/microsoft/identity/client/Logger$LogLevel;Ljava/lang/String;Z)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p2 = JNIEnv.NewString(p2); JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(native_p0); __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); __args [2] = new JValue(native_p2); __args [3] = new JValue(p3); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z, __args); JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p2); }
public unsafe void Log(string tag, global::Com.Microsoft.Identity.Client.Logger.LogLevel logLevel, string message, bool containsPII) { if (id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z == IntPtr.Zero) { id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z = JNIEnv.GetMethodID(class_ref, "log", "(Ljava/lang/String;Lcom/microsoft/identity/client/Logger$LogLevel;Ljava/lang/String;Z)V"); } IntPtr native_tag = JNIEnv.NewString(tag); IntPtr native_message = JNIEnv.NewString(message); JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(native_tag); __args [1] = new JValue((logLevel == null) ? IntPtr.Zero : ((global::Java.Lang.Object)logLevel).Handle); __args [2] = new JValue(native_message); __args [3] = new JValue(containsPII); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_log_Ljava_lang_String_Lcom_microsoft_identity_client_Logger_LogLevel_Ljava_lang_String_Z, __args); JNIEnv.DeleteLocalRef(native_tag); JNIEnv.DeleteLocalRef(native_message); }