public enum

InspectableProperty.ValueType

extends java.lang.Enum<InspectableProperty.ValueType>

 java.lang.Object

↳java.lang.Enum<InspectableProperty.ValueType>

↳androidx.annotation.InspectableProperty.ValueType

Overview

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

Summary

Enum Constants
COLORValue packs color information.
GRAVITYValue packs gravity information.
INFERREDThe default the annotation processor infers the value type from context.
INT_ENUMValue packs an enumeration.
INT_FLAGValue packs flags, of which many may be enabled at once.
NONENo special handling, property is considered to be a numeric value.
RESOURCE_IDValue is a resource ID This type is inferred from the presence of a resource ID annotation such as AnyRes.
Methods
public static InspectableProperty.ValueTypevalueOf(java.lang.String name)

public static InspectableProperty.ValueTypevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

NONE

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

INFERRED

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

INT_ENUM

Value packs an enumeration. This is inferred if InspectableProperty.enumMapping() is specified.

See also: InspectableProperty.EnumEntry

INT_FLAG

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

See also: InspectableProperty.FlagEntry

COLOR

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

GRAVITY

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

RESOURCE_ID

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

Methods

public static InspectableProperty.ValueType values()

public static InspectableProperty.ValueType valueOf(java.lang.String name)