Beispiel #1
0
        static bool n_SetLongCopy_Landroid_view_View_OnLongClickListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Views.View.IOnLongClickListener p0 = (global::Android.Views.View.IOnLongClickListener)global::Java.Lang.Object.GetObject <global::Android.Views.View.IOnLongClickListener> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.SetLongCopy(p0);

            return(__ret);
        }
Beispiel #2
0
 public override unsafe global::Android.Views.View.IOnLongClickListener GetOnLongClickListener(int p0, global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder p1)
 {
     if (id_getOnLongClickListener_ILcom_liveperson_infra_ui_view_adapter_viewholder_BaseViewHolder_ == IntPtr.Zero)
     {
         id_getOnLongClickListener_ILcom_liveperson_infra_ui_view_adapter_viewholder_BaseViewHolder_ = JNIEnv.GetMethodID(class_ref, "getOnLongClickListener", "(ILcom/liveperson/infra/ui/view/adapter/viewholder/BaseViewHolder;)Landroid/view/View$OnLongClickListener;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Android.Views.View.IOnLongClickListener __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View.IOnLongClickListener> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getOnLongClickListener_ILcom_liveperson_infra_ui_view_adapter_viewholder_BaseViewHolder_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Beispiel #3
0
        public virtual unsafe void SetOnLongClickListener(global::Android.Views.View.IOnLongClickListener p0)
        {
            if (id_setOnLongClickListener_Landroid_view_View_OnLongClickListener_ == IntPtr.Zero)
            {
                id_setOnLongClickListener_Landroid_view_View_OnLongClickListener_ = JNIEnv.GetMethodID(class_ref, "setOnLongClickListener", "(Landroid/view/View$OnLongClickListener;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setOnLongClickListener_Landroid_view_View_OnLongClickListener_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setOnLongClickListener", "(Landroid/view/View$OnLongClickListener;)V"), __args);
                }
            } finally {
            }
        }
Beispiel #4
0
        protected virtual unsafe bool SetLongCopy(global::Android.Views.View.IOnLongClickListener p0)
        {
            if (id_setLongCopy_Landroid_view_View_OnLongClickListener_ == IntPtr.Zero)
            {
                id_setLongCopy_Landroid_view_View_OnLongClickListener_ = JNIEnv.GetMethodID(class_ref, "setLongCopy", "(Landroid/view/View$OnLongClickListener;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_setLongCopy_Landroid_view_View_OnLongClickListener_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setLongCopy", "(Landroid/view/View$OnLongClickListener;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }