# InspectableProperty.ValueType

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/InspectableProperty.jvm.kt+class:androidx.annotation.InspectableProperty.ValueType) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)

*** ** * ** ***


```
public enum InspectableProperty.ValueType extends Enum<@NonNull InspectableProperty.ValueType>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [kotlin.Enum](https://developer.android.com/reference/java/lang/Enum.html)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) [InspectableProperty.ValueType](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType)\> ||
|   | ↳ | [androidx.annotation.InspectableProperty.ValueType](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType) |

*** ** * ** ***

> [!CAUTION]
> **This enum is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#COLOR` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#GRAVITY` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#INFERRED` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#INT_ENUM` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#INT_FLAG` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#NONE` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#RESOURCE_ID` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType>` | `[getEntries](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#getEntries())()` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType` | `[valueOf](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#valueOf(kotlin.String))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull InspectableProperty.ValueType[]` | `[values](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#values())()` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |

## Enum Values

### COLOR

```
InspectableProperty.ValueType InspectableProperty.ValueType.COLOR
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Value packs color information.

This is inferred from `https://developer.android.com/reference/androidx/annotation/ColorInt`, or `https://developer.android.com/reference/androidx/annotation/ColorLong` on the getter method.

### GRAVITY

```
InspectableProperty.ValueType InspectableProperty.ValueType.GRAVITY
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Value packs gravity information.

This type is not inferred and is non-trivial to represent using `https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry`.

### INFERRED

```
InspectableProperty.ValueType InspectableProperty.ValueType.INFERRED
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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

### INT_ENUM

```
InspectableProperty.ValueType InspectableProperty.ValueType.INT_ENUM
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Value packs an enumeration.

This is inferred if `https://developer.android.com/reference/androidx/annotation/InspectableProperty#enumMapping()` is specified.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.EnumEntry` |   |

### INT_FLAG

```
InspectableProperty.ValueType InspectableProperty.ValueType.INT_FLAG
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Value packs flags, of which many may be enabled at once.

This is inferred if `https://developer.android.com/reference/androidx/annotation/InspectableProperty#flagMapping()` is specified.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry` |   |

### NONE

```
InspectableProperty.ValueType InspectableProperty.ValueType.NONE
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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

### RESOURCE_ID

```
InspectableProperty.ValueType InspectableProperty.ValueType.RESOURCE_ID
```

> [!CAUTION]
> **This enum value is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Value is a resource ID

This type is inferred from the presence of a resource ID annotation such as `https://developer.android.com/reference/androidx/annotation/AnyRes`.

## Public methods

### getEntries

```
public final @NonNull EnumEntries<@NonNull InspectableProperty.ValueType> [getEntries](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#getEntries())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

Returns an immutable `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html` list containing the constants of this enum type, in the order they're declared.

### valueOf

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)

```
public static final @NonNull InspectableProperty.ValueType [valueOf](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#valueOf(kotlin.String))(@NonNull String value)
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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 |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)

```
public static final @NonNull InspectableProperty.ValueType[] [values](https://developer.android.com/reference/androidx/annotation/InspectableProperty.ValueType#values())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using `entries` property as a more efficient alternative returning an immutable list of enum entries.