{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
enum InspectableProperty.ValueType
The type of value packed into a primitive {int}.
Enum Values |
|
---|---|
COLOR |
Value packs color information.This is inferred from android.annotation.ColorInt, or android.annotation.ColorLong on the getter method. |
GRAVITY |
Value packs gravity information.This type is not inferred, and is non-trivial to represent using |
INFERRED |
The default the annotation processor infers the value type from context. |
INT_ENUM |
Value packs an enumeration.This is inferred if |
INT_FLAG |
Value packs flags, of which many may be enabled at once.This is inferred if |
NONE |
No special handling, property is considered to be a numeric value. |
RESOURCE_ID |
Value is a resource IDThis type is inferred from the presence of a resource ID annotation such as android.annotation.AnyRes. |
Public functions |
|
---|---|
InspectableProperty.ValueType |
|
Array<InspectableProperty.ValueType> |
values() |
val InspectableProperty.ValueType.COLOR: InspectableProperty.ValueType
Value packs color information.This is inferred from android.annotation.ColorInt, or android.annotation.ColorLong on the getter method.
See also | |
---|---|
Color |
val InspectableProperty.ValueType.GRAVITY: InspectableProperty.ValueType
Value packs gravity information.This type is not inferred, and is non-trivial to represent using FlagEntry
.
See also | |
---|---|
Gravity |
val InspectableProperty.ValueType.INFERRED: InspectableProperty.ValueType
The default the annotation processor infers the value type from context.
val InspectableProperty.ValueType.INT_ENUM: InspectableProperty.ValueType
Value packs an enumeration.This is inferred if enumMapping
is specified.
See also | |
---|---|
InspectableProperty.EnumEntry |
val InspectableProperty.ValueType.INT_FLAG: InspectableProperty.ValueType
Value packs flags, of which many may be enabled at once.This is inferred if flagMapping
is specified.
See also | |
---|---|
InspectableProperty.FlagEntry |
val InspectableProperty.ValueType.NONE: InspectableProperty.ValueType
No special handling, property is considered to be a numeric value.
val InspectableProperty.ValueType.RESOURCE_ID: InspectableProperty.ValueType
Value is a resource IDThis type is inferred from the presence of a resource ID annotation such as android.annotation.AnyRes.