public static global::Android.Net.ConnectivityManager GetConnManager(global::Android.Content.Context p0)
 {
     if (id_getConnManager_Landroid_content_Context_ == IntPtr.Zero)
     {
         id_getConnManager_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "getConnManager", "(Landroid/content/Context;)Landroid/net/ConnectivityManager;");
     }
     global::Android.Net.ConnectivityManager __ret = global::Java.Lang.Object.GetObject <global::Android.Net.ConnectivityManager> (JNIEnv.CallStaticObjectMethod(class_ref, id_getConnManager_Landroid_content_Context_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
Ejemplo n.º 2
0
 public static unsafe global::Android.Net.ConnectivityManager GetConnManager(global::Android.Content.Context p0)
 {
     if (id_getConnManager_Landroid_content_Context_ == IntPtr.Zero)
     {
         id_getConnManager_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "getConnManager", "(Landroid/content/Context;)Landroid/net/ConnectivityManager;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Android.Net.ConnectivityManager __ret = global::Java.Lang.Object.GetObject <global::Android.Net.ConnectivityManager> (JNIEnv.CallStaticObjectMethod(class_ref, id_getConnManager_Landroid_content_Context_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }