static void n_SetOnColorChangedListener_Lorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { HSBColorPickerView __this = Java.Lang.Object.GetObject <HSBColorPickerView> (native__this, JniHandleOwnership.DoNotTransfer); global::Orbotix.Robot.App.ColorPickerActivity.IOnColorChangedListener p0 = Java.Lang.Object.GetObject <global::Orbotix.Robot.App.ColorPickerActivity.IOnColorChangedListener> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetOnColorChangedListener(p0); }
public virtual void SetOnColorChangedListener(global::Orbotix.Robot.App.ColorPickerActivity.IOnColorChangedListener p0) { if (id_setOnColorChangedListener_Lorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_ == IntPtr.Zero) { id_setOnColorChangedListener_Lorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_ = JNIEnv.GetMethodID(class_ref, "setOnColorChangedListener", "(Lorbotix/robot/app/ColorPickerActivity$OnColorChangedListener;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setOnColorChangedListener_Lorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_, new JValue(p0)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_setOnColorChangedListener_Lorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_, new JValue(p0)); } }
public HSBColorPickerView(global::Android.Content.Context p0, global::Android.Util.IAttributeSet p1, int p2, int p3, global::Orbotix.Robot.App.ColorPickerActivity.IOnColorChangedListener p4) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(HSBColorPickerView)) { SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Landroid/content/Context;Landroid/util/AttributeSet;IILorbotix/robot/app/ColorPickerActivity$OnColorChangedListener;)V", new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)), JniHandleOwnership.TransferLocalRef); return; } if (id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_IILorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_ == IntPtr.Zero) { id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_IILorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;IILorbotix/robot/app/ColorPickerActivity$OnColorChangedListener;)V"); } SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_IILorbotix_robot_app_ColorPickerActivity_OnColorChangedListener_, new JValue(p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4)), JniHandleOwnership.TransferLocalRef); }