public static unsafe global::com.mopub.common.LocationService.LocationAwareness FromMoPubLocationAwareness(global::com.mopub.common.MoPub.LocationAwareness p0) { if (id_fromMoPubLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_ == IntPtr.Zero) { id_fromMoPubLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_ = JNIEnv.GetStaticMethodID(class_ref, "fromMoPubLocationAwareness", "(Lcom/mopub/common/MoPub$LocationAwareness;)Lcom/mopub/common/LocationService$LocationAwareness;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::com.mopub.common.LocationService.LocationAwareness __ret = global::Java.Lang.Object.GetObject <global::com.mopub.common.LocationService.LocationAwareness> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromMoPubLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public static unsafe global::com.mopub.common.LocationService.LocationAwareness 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/mopub/common/LocationService$LocationAwareness;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::com.mopub.common.LocationService.LocationAwareness __ret = global::Java.Lang.Object.GetObject <global::com.mopub.common.LocationService.LocationAwareness> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }