public virtual unsafe global::Com.Bumptech.Glide.Manager.IConnectivityMonitor Build(global::Android.Content.Context p0, global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener p1) { if (id_build_Landroid_content_Context_Lcom_bumptech_glide_manager_ConnectivityMonitor_ConnectivityListener_ == IntPtr.Zero) { id_build_Landroid_content_Context_Lcom_bumptech_glide_manager_ConnectivityMonitor_ConnectivityListener_ = JNIEnv.GetMethodID(class_ref, "build", "(Landroid/content/Context;Lcom/bumptech/glide/manager/ConnectivityMonitor$ConnectivityListener;)Lcom/bumptech/glide/manager/ConnectivityMonitor;"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); global::Com.Bumptech.Glide.Manager.IConnectivityMonitor __ret; if (GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.IConnectivityMonitor> (JNIEnv.CallObjectMethod(Handle, id_build_Landroid_content_Context_Lcom_bumptech_glide_manager_ConnectivityMonitor_ConnectivityListener_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.IConnectivityMonitor> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "build", "(Landroid/content/Context;Lcom/bumptech/glide/manager/ConnectivityMonitor$ConnectivityListener;)Lcom/bumptech/glide/manager/ConnectivityMonitor;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static void n_OnConnectivityChanged_Z(IntPtr jnienv, IntPtr native__this, bool p0) { global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.OnConnectivityChanged(p0); }
static IntPtr n_Build_Landroid_content_Context_Lcom_bumptech_glide_manager_ConnectivityMonitor_ConnectivityListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Bumptech.Glide.Manager.ConnectivityMonitorFactory __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.ConnectivityMonitorFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener p1 = (global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener)global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.IConnectivityMonitorConnectivityListener> (native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Build(p0, p1)); return(__ret); }