public unsafe ClickListenerHelper(global::Com.Mikepenz.Fastadapter.FastAdapter p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() != typeof(ClickListenerHelper)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/mikepenz/fastadapter/FastAdapter;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mikepenz/fastadapter/FastAdapter;)V", __args); return; } if (id_ctor_Lcom_mikepenz_fastadapter_FastAdapter_ == IntPtr.Zero) { id_ctor_Lcom_mikepenz_fastadapter_FastAdapter_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mikepenz/fastadapter/FastAdapter;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mikepenz_fastadapter_FastAdapter_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mikepenz_fastadapter_FastAdapter_, __args); } finally { } }
static IntPtr n_Wrap_Lcom_mikepenz_fastadapter_FastAdapter_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Mikepenz.Fastadapter.AbstractAdapter __this = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.AbstractAdapter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Mikepenz.Fastadapter.FastAdapter p0 = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.FastAdapter> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Wrap(p0)); return(__ret); }
public static unsafe void HandleStates(global::Com.Mikepenz.Fastadapter.FastAdapter p0, int p1, int p2) { if (id_handleStates_Lcom_mikepenz_fastadapter_FastAdapter_II == IntPtr.Zero) { id_handleStates_Lcom_mikepenz_fastadapter_FastAdapter_II = JNIEnv.GetStaticMethodID(class_ref, "handleStates", "(Lcom/mikepenz/fastadapter/FastAdapter;II)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); JNIEnv.CallStaticVoidMethod(class_ref, id_handleStates_Lcom_mikepenz_fastadapter_FastAdapter_II, __args); } finally { } }
public virtual unsafe global::Com.Mikepenz.Fastadapter.AbstractAdapter Wrap(global::Com.Mikepenz.Fastadapter.FastAdapter p0) { if (id_wrap_Lcom_mikepenz_fastadapter_FastAdapter_ == IntPtr.Zero) { id_wrap_Lcom_mikepenz_fastadapter_FastAdapter_ = JNIEnv.GetMethodID(class_ref, "wrap", "(Lcom/mikepenz/fastadapter/FastAdapter;)Lcom/mikepenz/fastadapter/AbstractAdapter;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Com.Mikepenz.Fastadapter.AbstractAdapter __ret; if (GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.AbstractAdapter> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_wrap_Lcom_mikepenz_fastadapter_FastAdapter_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.AbstractAdapter> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "wrap", "(Lcom/mikepenz/fastadapter/FastAdapter;)Lcom/mikepenz/fastadapter/AbstractAdapter;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
public static unsafe global::System.Collections.Generic.IList <global::Com.Mikepenz.Fastadapter.IItem> GetAllItems(global::Com.Mikepenz.Fastadapter.FastAdapter p0) { if (id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_ == IntPtr.Zero) { id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_ = JNIEnv.GetStaticMethodID(class_ref, "getAllItems", "(Lcom/mikepenz/fastadapter/FastAdapter;)Ljava/util/List;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::System.Collections.Generic.IList <global::Com.Mikepenz.Fastadapter.IItem> __ret = global::Android.Runtime.JavaList <global::Com.Mikepenz.Fastadapter.IItem> .FromJniHandle(JNIEnv.CallStaticObjectMethod(class_ref, id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }