public unsafe LPAuthenticationParams(global::Com.Liveperson.Infra.LPAuthenticationParams.LPAuthenticationType p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (((object)this).GetType() != typeof(LPAuthenticationParams)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Lcom/liveperson/infra/LPAuthenticationParams$LPAuthenticationType;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/liveperson/infra/LPAuthenticationParams$LPAuthenticationType;)V", __args); return; } if (id_ctor_Lcom_liveperson_infra_LPAuthenticationParams_LPAuthenticationType_ == IntPtr.Zero) { id_ctor_Lcom_liveperson_infra_LPAuthenticationParams_LPAuthenticationType_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/liveperson/infra/LPAuthenticationParams$LPAuthenticationType;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_liveperson_infra_LPAuthenticationParams_LPAuthenticationType_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_liveperson_infra_LPAuthenticationParams_LPAuthenticationType_, __args); } finally { } }
public static unsafe global::Com.Liveperson.Infra.LPAuthenticationParams.LPAuthenticationType ValueOf(string p0) { if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero) { id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/liveperson/infra/LPAuthenticationParams$LPAuthenticationType;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Liveperson.Infra.LPAuthenticationParams.LPAuthenticationType __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.LPAuthenticationParams.LPAuthenticationType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }