setMode

open fun setMode(mode: Int)(source)

Sets the display mode of the color picker.

This method allows you to control which views (e.g., spectrum, swatches, opacity bar) are visible and how they are arranged within the color picker.

The available modes are defined in SeslColorPicker.PickerMode. For example, to show only the color spectrum, you can use MODE_SPECTRUM.

Parameters

mode

The desired display mode for the color picker. This should be one of the constants defined in SeslColorPicker.PickerMode.

See also