{% setvar book_path %}/reference/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

InspectableProperty.ValueType

{% setvar page_path %}dokkatest/platform/InspectableProperty.ValueType.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_java_switcher2.md" %}

enum InspectableProperty.ValueType


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

Summary

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 FlagEntry.

INFERRED

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

INT_ENUM

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

INT_FLAG

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

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 methods

static @NonNull InspectableProperty.ValueType
static @NonNull Array<@NonNull InspectableProperty.ValueType>

Enum Values

COLOR

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.COLOR

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

See also
Color

GRAVITY

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.GRAVITY

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

See also
Gravity

INFERRED

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.INFERRED

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

INT_ENUM

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.INT_ENUM

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

See also
InspectableProperty.EnumEntry

INT_FLAG

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.INT_FLAG

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

See also
InspectableProperty.FlagEntry

NONE

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.NONE

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

RESOURCE_ID

@NonNull
@NonNull InspectableProperty.ValueType InspectableProperty.ValueType.RESOURCE_ID

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

Public methods

valueOf

@NonNull
public static InspectableProperty.ValueType valueOf(@NonNull String name)

values

@NonNull
public static Array<@NonNull InspectableProperty.ValueTypevalues()