Color Picker Inspector Detail View
The single, unified detail view backing ColorPickerInspectorView. This is a Compose-backed reimplementation that replaces the two View classes the SDK used to ship — the old ColorPickerInspectorDetailView (a flat colour grid) and CustomColorPickerInspectorDetailView (palette + recents + variations + custom entry).
Which of those two behaviours you get is controlled by setRestrictToAvailableColors: the default false matches the old custom picker, while true matches the old flat grid by offering availableColors and nothing else.
Note that this class reuses the old flat-grid class's name but not its constructor contract: it takes no trailing singleLine flag, so calls to the old four-argument constructor fail to compile rather than changing behaviour silently.
Constructors
Properties
Functions
Bind to property inspector controller.
Called to get the maximum height the detail view will be.
Returns maximum height that this view with all its detail views will occupy.
Height of the parent PropertyInspector that this view would like it to have.
Called when it's time to save the view state. It will later be restored by calling setState ()}
Returns best height of this view when shown in inspector. This is used to suggest initial height to inspector parent.
Casts the inspector view to the View class and returns it.
Called to set the listener to notify once the user selected a color.
Restricts the user to availableColors when true, hiding the custom color entry, the recently used colors, and the generated color variations — every route to a color outside that list. Defaults to false.
Makes the color selection indicator visible/invisible, matching the legacy ColorPickerInspectorDetailView.setShowSelectionIndicator. Turn it off for pickers that apply a color to a target rather than representing a persistent selection.
Called to restore the state that was saved before by calling getState.
Unbind from property inspector controller.