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) |
default List< String > | getPossibleValues () |
A ValueType tells the Tweakr UI what kind of widget to use to change it. It also handles converting values from the TweakrRepo into the ones needed by Android.
Object com.google.tweakr.types.ValueType.convert | ( | Object | newValue | ) |
Safely convert a value from Firebase into the correct type.
Implemented in com.google.tweakr.types.ArrayValueType, com.google.tweakr.types.ColorValueType, com.google.tweakr.types.EnumValueType< T >, com.google.tweakr.types.PrimitiveValueType, and com.google.tweakr.types.VoidValueType.
Object com.google.tweakr.types.ValueType.getDefault | ( | ) |
A default value if one cannot be determined.
Implemented in com.google.tweakr.types.ArrayValueType, com.google.tweakr.types.ColorValueType, com.google.tweakr.types.EnumValueType< T >, com.google.tweakr.types.PrimitiveValueType, and com.google.tweakr.types.VoidValueType.
String com.google.tweakr.types.ValueType.getName | ( | ) |
Simple name of the type. Used to select an appropriate UI.
Implemented in com.google.tweakr.types.ArrayValueType, com.google.tweakr.types.ColorValueType, com.google.tweakr.types.EnumValueType< T >, com.google.tweakr.types.PrimitiveValueType, and com.google.tweakr.types.VoidValueType.
default List< String > com.google.tweakr.types.ValueType.getPossibleValues | ( | ) |
For enum fields or other fields you want to restrict to only certain choices.
Implemented in com.google.tweakr.types.EnumValueType< T >.