# 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)

*** ** * ** ***

Common/AllAndroid/JVM
- android

  ```
  enum InspectableProperty.ValueType : Enum<InspectableProperty.ValueType>
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)\<[InspectableProperty.ValueType](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType)\> ||
|   | ↳ | [androidx.annotation.InspectableProperty.ValueType](https://developer.android.com/reference/kotlin/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/kotlin/androidx/annotation/InspectableProperty.ValueType#COLOR` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#GRAVITY` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#INFERRED` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#INT_ENUM` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#INT_FLAG` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#NONE` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#RESOURCE_ID` | **This enum value is deprecated.** Replaced by the androidx.resourceinpsection package. |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType` | `[valueOf](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#valueOf(kotlin.String))(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` **This function is deprecated.** Replaced by the androidx.resourceinpsection package. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType>` | `[values](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#values())()` **This function is deprecated.** Replaced by the androidx.resourceinpsection package. | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html<https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType>` | `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#entries()` **This property is deprecated.** Replaced by the androidx.resourceinpsection package. | android |

## Enum Values

### COLOR

```
val InspectableProperty.ValueType.COLOR: InspectableProperty.ValueType
```

> [!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/kotlin/androidx/annotation/ColorInt`, or `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` on the getter method.

### GRAVITY

```
val InspectableProperty.ValueType.GRAVITY: InspectableProperty.ValueType
```

> [!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/kotlin/androidx/annotation/InspectableProperty.FlagEntry`.

### INFERRED

```
val InspectableProperty.ValueType.INFERRED: InspectableProperty.ValueType
```

> [!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

```
val InspectableProperty.ValueType.INT_ENUM: InspectableProperty.ValueType
```

> [!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/kotlin/androidx/annotation/InspectableProperty#enumMapping()` is specified.

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

### INT_FLAG

```
val InspectableProperty.ValueType.INT_FLAG: InspectableProperty.ValueType
```

> [!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/kotlin/androidx/annotation/InspectableProperty#flagMapping()` is specified.

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

### NONE

```
val InspectableProperty.ValueType.NONE: InspectableProperty.ValueType
```

> [!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

```
val InspectableProperty.ValueType.RESOURCE_ID: InspectableProperty.ValueType
```

> [!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/kotlin/androidx/annotation/AnyRes`.

## Public functions

### valueOf

android 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)

```
fun [valueOf](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#valueOf(kotlin.String))(value: String): InspectableProperty.ValueType
```

> [!CAUTION]
> **This function 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

android 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)

```
fun [values](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.ValueType#values())(): Array<InspectableProperty.ValueType>
```

> [!CAUTION]
> **This function 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.

## Public properties

### entries

android

```
val entries: EnumEntries<InspectableProperty.ValueType>
```

> [!CAUTION]
> **This property 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.