Tweakr
Android Library for Remote Debugging, Autogenerating Settings/Preference UIs, and Wizard-of-Ozing
com.google.tweakr.types.ValueType Interface Reference
Inheritance diagram for com.google.tweakr.types.ValueType:
com.google.tweakr.types.ArrayValueType com.google.tweakr.types.ColorValueType com.google.tweakr.types.EnumValueType< T > com.google.tweakr.types.PrimitiveValueType com.google.tweakr.types.VoidValueType

Public Member Functions

String getName ()
 
Object getDefault ()
 
Object convert (Object newValue)
 
default List< String > getPossibleValues ()
 

Detailed Description

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.

Member Function Documentation

◆ convert()

Object com.google.tweakr.types.ValueType.convert ( Object  newValue)

◆ getDefault()

◆ getName()

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

◆ getPossibleValues()

default List< String > com.google.tweakr.types.ValueType.getPossibleValues ( )

For enum fields or other fields you want to restrict to only certain choices.

Returns
An array of String representations of all possible values to choose from.

Implemented in com.google.tweakr.types.EnumValueType< T >.


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