ValueType
class ValueType
kotlin.Any | ||
↳ | kotlin.Enum<androidx.annotation.InspectableProperty.ValueType> | |
↳ | androidx.annotation.InspectableProperty.ValueType |
The type of value packed into a primitive {int}.
Summary
Enum values | |
---|---|
Value packs color information. |
|
Value packs gravity information. |
|
The default the annotation processor infers the value type from context. |
|
Value packs an enumeration. |
|
Value packs flags, of which many may be enabled at once. |
|
No special handling, property is considered to be a numeric value. |
|
Value is a resource ID This type is inferred from the presence of a resource ID annotation such as |
Enum values
COLOR
enum val COLOR : InspectableProperty.ValueType
Value packs color information. This is inferred from ColorInt
, or ColorLong
on the getter method.
GRAVITY
enum val GRAVITY : InspectableProperty.ValueType
Value packs gravity information. This type is not inferred and is non-trivial to represent using FlagEntry
.
INFERRED
enum val INFERRED : InspectableProperty.ValueType
The default the annotation processor infers the value type from context.
INT_ENUM
enum val INT_ENUM : InspectableProperty.ValueType
Value packs an enumeration. This is inferred if enumMapping()
is specified.
See Also
INT_FLAG
enum val INT_FLAG : InspectableProperty.ValueType
Value packs flags, of which many may be enabled at once. This is inferred if flagMapping()
is specified.
See Also
NONE
enum val NONE : InspectableProperty.ValueType
No special handling, property is considered to be a numeric value.
RESOURCE_ID
enum val RESOURCE_ID : InspectableProperty.ValueType
Value is a resource ID This type is inferred from the presence of a resource ID annotation such as AnyRes
.