InspectableProperty.ValueType
-
android
enum InspectableProperty.ValueType : Enum
The type of value packed into a primitive {int}.
Summary
Enum Values |
|
|---|---|
COLOR |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
GRAVITY |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
INFERRED |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
INT_ENUM |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
INT_FLAG |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
NONE |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
RESOURCE_ID |
This enum value is deprecated. Replaced by the androidx.resourceinpsection package. |
Public functions |
||
|---|---|---|
InspectableProperty.ValueType |
This function is deprecated. Replaced by the androidx.resourceinpsection package. |
android
|
Array<InspectableProperty.ValueType> |
This function is deprecated. Replaced by the androidx.resourceinpsection package. |
android
|
Public properties |
||
|---|---|---|
EnumEntries<InspectableProperty.ValueType> |
This property is deprecated. Replaced by the androidx.resourceinpsection package. |
android
|
Enum Values
COLOR
val InspectableProperty.ValueType.COLOR: InspectableProperty.ValueType
Value packs color information.
This is inferred from ColorInt, or ColorLong on the getter method.
GRAVITY
val InspectableProperty.ValueType.GRAVITY: InspectableProperty.ValueType
Value packs gravity information.
This type is not inferred and is non-trivial to represent using FlagEntry.
INFERRED
val InspectableProperty.ValueType.INFERRED: InspectableProperty.ValueType
The default the annotation processor infers the value type from context.
INT_ENUM
val InspectableProperty.ValueType.INT_ENUM: InspectableProperty.ValueType
Value packs an enumeration.
This is inferred if enumMapping is specified.
| See also | |
|---|---|
InspectableProperty.EnumEntry |
INT_FLAG
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 |
NONE
val InspectableProperty.ValueType.NONE: InspectableProperty.ValueType
No special handling, property is considered to be a numeric value.
RESOURCE_ID
val InspectableProperty.ValueType.RESOURCE_ID: InspectableProperty.ValueType
Value is a resource ID
This type is inferred from the presence of a resource ID annotation such as AnyRes.
Public functions
valueOf
funvalueOf(value: String): InspectableProperty.ValueType
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
funvalues(): Array<InspectableProperty.ValueType>
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
Public properties
entries
val entries: EnumEntries<InspectableProperty.ValueType>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
This method may be used to iterate over the enum entries.