InspectableProperty.ValueType
public
static
final
enum
InspectableProperty.ValueType
extends Enum<InspectableProperty.ValueType>
java.lang.Object | ||
↳ | java.lang.Enum<androidx.annotation.InspectableProperty.ValueType> | |
↳ | androidx.annotation.InspectableProperty.ValueType |
The type of value packed into a primitive {int}.
Summary
Enum values | |
---|---|
InspectableProperty.ValueType |
COLOR
Value packs color information. |
InspectableProperty.ValueType |
GRAVITY
Value packs gravity information. |
InspectableProperty.ValueType |
INFERRED
The default the annotation processor infers the value type from context. |
InspectableProperty.ValueType |
INT_ENUM
Value packs an enumeration. |
InspectableProperty.ValueType |
INT_FLAG
Value packs flags, of which many may be enabled at once. |
InspectableProperty.ValueType |
NONE
No special handling, property is considered to be a numeric value. |
InspectableProperty.ValueType |
RESOURCE_ID
Value is a resource ID
This type is inferred from the presence of a resource ID annotation such as
|
Public methods | |
---|---|
static
InspectableProperty.ValueType
|
valueOf(String name)
|
static
final
ValueType[]
|
values()
|
Inherited methods | |
---|---|
Enum values
COLOR
public static final InspectableProperty.ValueType COLOR
Value packs color information.
This is inferred from ColorInt
, or ColorLong
on the getter method.
GRAVITY
public static final InspectableProperty.ValueType GRAVITY
Value packs gravity information.
This type is not inferred and is non-trivial to represent using InspectableProperty.FlagEntry
.
INFERRED
public static final InspectableProperty.ValueType INFERRED
The default the annotation processor infers the value type from context.
INT_ENUM
public static final InspectableProperty.ValueType INT_ENUM
Value packs an enumeration.
This is inferred if InspectableProperty.enumMapping()
is specified.
See also:
INT_FLAG
public static final InspectableProperty.ValueType INT_FLAG
Value packs flags, of which many may be enabled at once.
This is inferred if InspectableProperty.flagMapping()
is specified.
See also:
NONE
public static final InspectableProperty.ValueType NONE
No special handling, property is considered to be a numeric value.
RESOURCE_ID
public static final 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 methods
valueOf
public static InspectableProperty.ValueType valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
InspectableProperty.ValueType |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-11-05 UTC.