public unsafe BadgeDrawableBuilder(global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle 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(BadgeDrawableBuilder))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/mikepenz/materialdrawer/holder/BadgeStyle;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lcom/mikepenz/materialdrawer/holder/BadgeStyle;)V", __args);
                    return;
                }

                if (id_ctor_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/mikepenz/materialdrawer/holder/BadgeStyle;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_, __args);
            } finally {
            }
        }
        static IntPtr n_WithBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Mikepenz.Materialdrawer.Model.PrimaryDrawerItem __this = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Model.PrimaryDrawerItem> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle       p0     = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.WithBadgeStyle(p0));

            return(__ret);
        }
Ejemplo n.º 3
0
        public unsafe global::Java.Lang.Object WithBadgeStyle(global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle p0)
        {
            if (id_withBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ == IntPtr.Zero)
            {
                id_withBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ = JNIEnv.GetMethodID(class_ref, "withBadgeStyle", "(Lcom/mikepenz/materialdrawer/holder/BadgeStyle;)Ljava/lang/Object;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            global::Java.Lang.Object __ret = (Java.Lang.Object)global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_withBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
 // This method is explicitly implemented as a member of an instantiated Com.Mikepenz.Materialdrawer.Model.Interfaces.IColorfulBadgeable
 global::Java.Lang.Object global::Com.Mikepenz.Materialdrawer.Model.Interfaces.IColorfulBadgeable.WithBadgeStyle(global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle p0)
 {
     return(global::Java.Interop.JavaObjectExtensions.JavaCast <Java.Lang.Object>(WithBadgeStyle(p0)));
 }
        public virtual unsafe global::Com.Mikepenz.Materialdrawer.Model.PrimaryDrawerItem WithBadgeStyle(global::Com.Mikepenz.Materialdrawer.Holder.BadgeStyle p0)
        {
            if (id_withBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ == IntPtr.Zero)
            {
                id_withBadgeStyle_Lcom_mikepenz_materialdrawer_holder_BadgeStyle_ = JNIEnv.GetMethodID(class_ref, "withBadgeStyle", "(Lcom/mikepenz/materialdrawer/holder/BadgeStyle;)Lcom/mikepenz/materialdrawer/model/PrimaryDrawerItem;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

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