Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SensitiveCategoryInfo

*** ** * ** ***

```
class SensitiveCategoryInfo : Parcelable
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.app.privatecompute.PccEgressException.SensitiveCategoryInfo](https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#) |

Details about the detected sensitive content that caused an egress request to be rejected.

## Summary

| Constants ||
|---|---|
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS:kotlin.Long` <br /> |
| static [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN:kotlin.Long` <br /> |

Inherited constants From class `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int`


Descriptor bit used with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.

<br />

`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int`


Flag for use with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point.

<br />

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#SensitiveCategoryInfo(kotlin.Long)(categoriesBitmask: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Creates a new instance with the specified bitmask of applicable sensitive categories. |

| Public methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#describeContents()()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#getApplicableCategories()()` Returns the bitmask of all applicable sensitive categories identified in the content. |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#isCategoryDetected(kotlin.Long)(category: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)` Checks whether the specified sensitive category flag is present in the detected categories. |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#writeToParcel(android.os.Parcel,%20kotlin.Int)(dest: https://developer.android.com/reference/kotlin/android/os/Parcel.html#, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Flatten this object in to a Parcel. |

| Properties ||
|---|---|
| static [Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[PccEgressException.SensitiveCategoryInfo](https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#)!\> | `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#CREATOR:android.os.Parcelable.Creator` <br /> |

## Constants

### FLAG_CATEGORY_BIOMETRICS

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_BIOMETRICS: Long
```

    Value: 64L

### FLAG_CATEGORY_FINANCE

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_FINANCE: Long
```

    Value: 8L

### FLAG_CATEGORY_HEALTH

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_HEALTH: Long
```

    Value: 1L

### FLAG_CATEGORY_POLITICS

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_POLITICS: Long
```

    Value: 2L

### FLAG_CATEGORY_RACE

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_RACE: Long
```

    Value: 16L

### FLAG_CATEGORY_RELIGION

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_RELIGION: Long
```

    Value: 4L

### FLAG_CATEGORY_SEXUAL_ORIENTATION

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_SEXUAL_ORIENTATION: Long
```

    Value: 32L

### FLAG_CATEGORY_TRADE_UNIONS

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_TRADE_UNIONS: Long
```

    Value: 128L

### FLAG_CATEGORY_UNKNOWN

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val FLAG_CATEGORY_UNKNOWN: Long
```

    Value: 256L

## Public constructors

### SensitiveCategoryInfo

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
SensitiveCategoryInfo(categoriesBitmask: Long)
```

Creates a new instance with the specified bitmask of applicable sensitive categories.

| Parameters ||
|---|---|
| `categoriesBitmask` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): The bitmask of detected sensitive categories. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS:kotlin.Long` |

## Public methods

### describeContents

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun describeContents(): Int
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`, the return value of this method must include the `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` bit.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` |

### getApplicableCategories

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getApplicableCategories(): Long
```

Returns the bitmask of all applicable sensitive categories identified in the content.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | A bitmask of android.app.privatecompute.PccEgressException.SensitiveCategoryInfo.SensitiveCategory constants. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS:kotlin.Long` |

### isCategoryDetected

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun isCategoryDetected(category: Long): Boolean
```

Checks whether the specified sensitive category flag is present in the detected categories.

| Parameters ||
|---|---|
| `category` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): The category flag to check (e.g., `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH:kotlin.Long`). Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS:kotlin.Long` - `https://developer.android.com/reference/kotlin/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS:kotlin.Long` |

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `true` if the category is applicable, `false` otherwise. |

### writeToParcel

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun writeToParcel(
    dest: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

| Parameters ||
|---|---|
| `dest` | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#): This value cannot be `null`. |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int` |

## Properties

### CREATOR

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CREATOR: Parcelable.Creator<PccEgressException.SensitiveCategoryInfo!>
```