OptionPickerInspectorView

Constructors

Link copied to clipboard
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.

Types

Link copied to clipboard
Listener for option selection changes.

Properties

Link copied to clipboard
The current custom value entered by the user, or null if none is set.
Link copied to clipboard
The list of indices for currently selected options.

Functions

Link copied to clipboard
Called after the text in the custom value field has been changed.
Link copied to clipboard
open fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int)
Called before the text in the custom value field is changed.
Link copied to clipboard
Bind to property inspector controller.
Link copied to clipboard
Returns maximum height that this view with all its detail views will occupy.
Link copied to clipboard
Height of the parent PropertyInspector that this view would like it to have.
Link copied to clipboard
Returns best height of this view when shown in inspector.
Link copied to clipboard
open fun getView(): View
Casts the inspector view to the View class and returns it.
Link copied to clipboard
open fun onClick(v: View)
Handles click events on option items in the picker.
Link copied to clipboard
open fun onFocusChange(v: View, hasFocus: Boolean)
Handles focus changes on the custom value input field.
Link copied to clipboard
open fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int)
Called when the text in the custom value field is changed.
Link copied to clipboard
open fun setFilters(@NonNull filters: Array<InputFilter>)
Sets the list of input filters that will be used in the custom value edit box.
Link copied to clipboard
open fun setInputType(inputType: Int)
Sets the type of content in the custom value edit box.
Link copied to clipboard
open fun setSelectedOptions(@NonNull selectedOptions: List<Integer>, notifyListeners: Boolean)
Sets selected option.
Link copied to clipboard
open fun unbindController()
Unbind from property inspector controller.