public static unsafe void SetModuleLogEnable(global::Com.Baidu.Mapapi.ModuleName p0, bool p1) { const string __id = "setModuleLogEnable.(Lcom/baidu/mapapi/ModuleName;Z)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JniArgumentValue(p1); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { } }
public static unsafe void SetModuleLogEnable(global::Com.Baidu.Mapapi.ModuleName p0, bool p1) { if (id_setModuleLogEnable_Lcom_baidu_mapapi_ModuleName_Z == IntPtr.Zero) { id_setModuleLogEnable_Lcom_baidu_mapapi_ModuleName_Z = JNIEnv.GetStaticMethodID(class_ref, "setModuleLogEnable", "(Lcom/baidu/mapapi/ModuleName;Z)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallStaticVoidMethod(class_ref, id_setModuleLogEnable_Lcom_baidu_mapapi_ModuleName_Z, __args); } finally { } }
public static unsafe global::Com.Baidu.Mapapi.ModuleName 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/baidu/mapapi/ModuleName;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Baidu.Mapapi.ModuleName __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.ModuleName> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }