Skip to main content

support

Function support 

Source
pub fn support() -> Support
Expand description

Whether the compiled backend has a native color chooser, which is what PickerIdiom::Automatic resolves against.

Support::Native on appkit, uikit, gtk, qt, xaml and web-dom. Support::Emulated on android-mdc and harmony-arkui, where Automatic gives the composed panel instead.

This does not report whether the picker works (there is no target where it does not), so an app showing a “not supported here” banner from this answer would be wrong. Use it to say which picker the user gets, or ignore it, unless the app pins PickerIdiom::Native: that realizes the leaf unconditionally and so does need this checked first.