# InspectableProperty.FlagEntry

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.FlagEntry) 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

  ```
  @Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS])
  @Retention(value = AnnotationRetention.SOURCE)
  annotation InspectableProperty.FlagEntry
  ```

*** ** * ** ***

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

One flag value of many that may be packed into a primitive {int}.

## Summary

| ### Public constructors |
|---|---|
| `[FlagEntry](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#FlagEntry(kotlin.String,kotlin.Int,kotlin.Int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Replaced by the androidx.resourceinpsection package. | android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#mask()` **This property is deprecated.** Replaced by the androidx.resourceinpsection package. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#name()` **This property is deprecated.** Replaced by the androidx.resourceinpsection package. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#target()` **This property is deprecated.** Replaced by the androidx.resourceinpsection package. | android |

## Public constructors

### FlagEntry

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

```
[FlagEntry](https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#FlagEntry(kotlin.String,kotlin.Int,kotlin.Int))(name: String, target: Int, mask: Int = 0)
```

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

## Public properties

### mask

android

```
val mask: Int
```

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

A mask that the property will be bitwise anded with before comparing to the target.

If set to 0 (the default), the value of `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#(kotlin.String,kotlin.Int,kotlin.Int)` will be used as a mask. Zero was chosen as the default since bitwise and with zero is always zero.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | A mask, or 0 to use the target as a mask |

### name

android

```
val name: String
```

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

The string name of this flag.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | A string name |

### target

android

```
val target: Int
```

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

A target value that the property's value must equal after masking.

If a mask is not supplied (i.e., `https://developer.android.com/reference/kotlin/androidx/annotation/InspectableProperty.FlagEntry#(kotlin.String,kotlin.Int,kotlin.Int)` is 0), the target will be reused as the mask. This handles the common case where no flags mutually exclude each other.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The target value to compare against |