Пример #1
0
        static IntPtr n_WithHeight_Lcom_mikepenz_materialdrawer_holder_DimenHolder_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem __this = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Mikepenz.Materialdrawer.Holder.DimenHolder        p0     = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Holder.DimenHolder>(native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.WithHeight(p0));

            return(__ret);
        }
Пример #2
0
        public virtual unsafe global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem WithHeight(global::Com.Mikepenz.Materialdrawer.Holder.DimenHolder p0)
        {
            if (id_withHeight_Lcom_mikepenz_materialdrawer_holder_DimenHolder_ == IntPtr.Zero)
            {
                id_withHeight_Lcom_mikepenz_materialdrawer_holder_DimenHolder_ = JNIEnv.GetMethodID(class_ref, "withHeight", "(Lcom/mikepenz/materialdrawer/holder/DimenHolder;)Lcom/mikepenz/materialdrawer/model/ContainerDrawerItem;");
            }
            try
            {
                JValue *__args = stackalloc JValue[1];
                __args[0] = new JValue(p0);

                global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem>(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_withHeight_Lcom_mikepenz_materialdrawer_holder_DimenHolder_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Model.ContainerDrawerItem>(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "withHeight", "(Lcom/mikepenz/materialdrawer/holder/DimenHolder;)Lcom/mikepenz/materialdrawer/model/ContainerDrawerItem;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            }
            finally
            {
            }
        }