Tweakr
Android Library for Remote Debugging, Autogenerating Settings/Preference UIs, and Wizard-of-Ozing
|
Public Member Functions | |
String | getName () |
Object | getDefault () |
Object | convert (Object newValue) |
Public Member Functions inherited from com.google.tweakr.types.ValueType | |
String | getName () |
Object | getDefault () |
Object | convert (Object newValue) |
default List< String > | getPossibleValues () |
Use on Android's @ColorInt fields to present a color picker instead of the default number slider.
{
Object com.google.tweakr.types.ColorValueType.convert | ( | Object | newValue | ) |
Safely convert a value from Firebase into the correct type.
Implements com.google.tweakr.types.ValueType.
Object com.google.tweakr.types.ColorValueType.getDefault | ( | ) |
A default value if one cannot be determined.
Implements com.google.tweakr.types.ValueType.
String com.google.tweakr.types.ColorValueType.getName | ( | ) |
Simple name of the type. Used to select an appropriate UI.
Implements com.google.tweakr.types.ValueType.