Tweakr
Android Library for Remote Debugging, Autogenerating Settings/Preference UIs, and Wizard-of-Ozing
com.google.tweakr.types.ColorValueType Class Reference
Inheritance diagram for com.google.tweakr.types.ColorValueType:
com.google.tweakr.types.ValueType

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 ()
 

Detailed Description

Use on Android's @ColorInt fields to present a color picker instead of the default number slider.

{

See also
com.google.tweakr.annotations.Tweak::valueType}

Member Function Documentation

◆ convert()

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.

◆ getDefault()

Object com.google.tweakr.types.ColorValueType.getDefault ( )

A default value if one cannot be determined.

Implements com.google.tweakr.types.ValueType.

◆ getName()

String com.google.tweakr.types.ColorValueType.getName ( )

Simple name of the type. Used to select an appropriate UI.

Implements com.google.tweakr.types.ValueType.


The documentation for this class was generated from the following file: