InspectableProperty.ValueType

enum InspectableProperty.ValueType


The type of value packed into a primitive {int}.

Summary

Enum Values

COLOR

Value packs color information.

GRAVITY

Value packs gravity information.

INFERRED

The default the annotation processor infers the value type from context.

INT_ENUM

Value packs an enumeration.

INT_FLAG

Value packs flags, of which many may be enabled at once.

NONE

No special handling, property is considered to be a numeric value.

RESOURCE_ID

Value is a resource ID This type is inferred from the presence of a resource ID annotation such as AnyRes.

Public constructors

Public methods

static InspectableProperty.ValueType
static InspectableProperty.ValueType[]

Enum Values

COLOR

InspectableProperty.ValueType InspectableProperty.ValueType.COLOR

Value packs color information. This is inferred from ColorInt, or ColorLong on the getter method.

GRAVITY

InspectableProperty.ValueType InspectableProperty.ValueType.GRAVITY

Value packs gravity information. This type is not inferred and is non-trivial to represent using FlagEntry.

INFERRED

InspectableProperty.ValueType InspectableProperty.ValueType.INFERRED

The default the annotation processor infers the value type from context.

INT_ENUM

InspectableProperty.ValueType InspectableProperty.ValueType.INT_ENUM

Value packs an enumeration. This is inferred if enumMapping is specified.

INT_FLAG

InspectableProperty.ValueType InspectableProperty.ValueType.INT_FLAG

Value packs flags, of which many may be enabled at once. This is inferred if flagMapping is specified.

NONE

InspectableProperty.ValueType InspectableProperty.ValueType.NONE

No special handling, property is considered to be a numeric value.

RESOURCE_ID

InspectableProperty.ValueType InspectableProperty.ValueType.RESOURCE_ID

Value is a resource ID This type is inferred from the presence of a resource ID annotation such as AnyRes.

Public constructors

ValueType

public final ValueType()

Public methods

valueOf