Example #1
0
        public virtual unsafe void SetColorPicker(global::Com.Flask.Colorpicker.ColorPickerView colorPicker)
        {
            const string __id = "setColorPicker.(Lcom/flask/colorpicker/ColorPickerView;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((colorPicker == null) ? IntPtr.Zero : ((global::Java.Lang.Object)colorPicker).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public virtual unsafe void SetColorPicker(global::Com.Flask.Colorpicker.ColorPickerView p0)
        {
            if (id_setColorPicker_Lcom_flask_colorpicker_ColorPickerView_ == IntPtr.Zero)
            {
                id_setColorPicker_Lcom_flask_colorpicker_ColorPickerView_ = JNIEnv.GetMethodID(class_ref, "setColorPicker", "(Lcom/flask/colorpicker/ColorPickerView;)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_setColorPicker_Lcom_flask_colorpicker_ColorPickerView_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setColorPicker", "(Lcom/flask/colorpicker/ColorPickerView;)V"), __args);
                }
            } finally {
            }
        }
 static void n_SetColorPicker_Lcom_flask_colorpicker_ColorPickerView_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Flask.Colorpicker.Slider.LightnessSlider __this = global::Java.Lang.Object.GetObject <global::Com.Flask.Colorpicker.Slider.LightnessSlider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Flask.Colorpicker.ColorPickerView        p0     = global::Java.Lang.Object.GetObject <global::Com.Flask.Colorpicker.ColorPickerView> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetColorPicker(p0);
 }