OptionPickerInspectorView

constructor(@NonNull context: Context, @NonNull options: List<String>, @NonNull defaultSelectedOptions: List<Integer>, isMultiSelectEnabled: Boolean, isEditable: Boolean, @Nullable defaultCustomValue: String, @Nullable listener: OptionPickerInspectorView.OnOptionPickedListener)

Construct options picker.

Parameters

context

The context to use.

options

List of available options.

defaultSelectedOptions

Indexes of selected options.

isMultiSelectEnabled

Whether the options can be multi selected or only single option can be selected at a time.

isEditable

Whether custom value is supported.

defaultCustomValue

Default custom value.

listener

Listener for color picker changes.