public static unsafe void SetLocationAwareness(global::com.mopub.common.MoPub.LocationAwareness p0) { if (id_setLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_ == IntPtr.Zero) { id_setLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_ = JNIEnv.GetStaticMethodID(class_ref, "setLocationAwareness", "(Lcom/mopub/common/MoPub$LocationAwareness;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); JNIEnv.CallStaticVoidMethod(class_ref, id_setLocationAwareness_Lcom_mopub_common_MoPub_LocationAwareness_, __args); } finally { } }
public static unsafe global::com.mopub.common.MoPub.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/MoPub$LocationAwareness;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::com.mopub.common.MoPub.LocationAwareness __ret = global::Java.Lang.Object.GetObject <global::com.mopub.common.MoPub.LocationAwareness> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
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::Android.Locations.Location GetLastKnownLocation(global::Android.Content.Context p0, int p1, global::com.mopub.common.MoPub.LocationAwareness p2) { if (id_getLastKnownLocation_Landroid_content_Context_ILcom_mopub_common_MoPub_LocationAwareness_ == IntPtr.Zero) { id_getLastKnownLocation_Landroid_content_Context_ILcom_mopub_common_MoPub_LocationAwareness_ = JNIEnv.GetStaticMethodID(class_ref, "getLastKnownLocation", "(Landroid/content/Context;ILcom/mopub/common/MoPub$LocationAwareness;)Landroid/location/Location;"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); global::Android.Locations.Location __ret = global::Java.Lang.Object.GetObject <global::Android.Locations.Location> (JNIEnv.CallStaticObjectMethod(class_ref, id_getLastKnownLocation_Landroid_content_Context_ILcom_mopub_common_MoPub_LocationAwareness_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }