Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Constants](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#constants) \| [Inherited Constants](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#lfields) \| [Ctors](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#pubctors) \| [Methods](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#inhmethods)

# PccEgressException.SensitiveCategoryInfo

*** ** * ** ***


`
public
static
final

class
PccEgressException.SensitiveCategoryInfo
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.privatecompute.PccEgressException.SensitiveCategoryInfo |

<br />

*** ** * ** ***

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

## Summary

| ### Constants ||
|---|---|
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS` |
| `long` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN` |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

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


`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: 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)`".


| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo>` | `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#CREATOR` |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#SensitiveCategoryInfo(long)(long categoriesBitmask) ` Creates a new instance with the specified bitmask of applicable sensitive categories. |

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

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/android/os/Parcelable

` `
abstract


int` `
https://developer.android.com/reference/android/os/Parcelable#describeContents()()
`

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.


`
abstract


void` `
https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags)
`

Flatten this object in to a Parcel.


## Constants

### FLAG_CATEGORY_BIOMETRICS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_BIOMETRICS
```

<br />

<br />

Constant Value:

64
(0x0000000000000040)


### FLAG_CATEGORY_FINANCE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_FINANCE
```

<br />

<br />

Constant Value:

8
(0x0000000000000008)


### FLAG_CATEGORY_HEALTH

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_HEALTH
```

<br />

<br />

Constant Value:

1
(0x0000000000000001)


### FLAG_CATEGORY_POLITICS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_POLITICS
```

<br />

<br />

Constant Value:

2
(0x0000000000000002)


### FLAG_CATEGORY_RACE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_RACE
```

<br />

<br />

Constant Value:

16
(0x0000000000000010)


### FLAG_CATEGORY_RELIGION

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_RELIGION
```

<br />

<br />

Constant Value:

4
(0x0000000000000004)


### FLAG_CATEGORY_SEXUAL_ORIENTATION

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_SEXUAL_ORIENTATION
```

<br />

<br />

Constant Value:

32
(0x0000000000000020)


### FLAG_CATEGORY_TRADE_UNIONS

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_TRADE_UNIONS
```

<br />

<br />

Constant Value:

128
(0x0000000000000080)


### FLAG_CATEGORY_UNKNOWN

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final long FLAG_CATEGORY_UNKNOWN
```

<br />

<br />

Constant Value:

256
(0x0000000000000100)


## Fields

### CREATOR

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final Creator<PccEgressException.SensitiveCategoryInfo> CREATOR
```

<br />

<br />

## Public constructors

### SensitiveCategoryInfo

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public SensitiveCategoryInfo (long categoriesBitmask)
```

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

<br />

| Parameters ||
|---|---|
| `categoriesBitmask` | `long`: The bitmask of detected sensitive categories. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS` |

## Public methods

### describeContents

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int describeContents ()
```

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/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | 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/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### getApplicableCategories

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public long getApplicableCategories ()
```

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

<br />

| Returns ||
|---|---|
| `long` | A bitmask of `https://developer.android.com/` constants. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS` |

### isCategoryDetected

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public boolean isCategoryDetected (long category)
```

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

<br />

| Parameters ||
|---|---|
| `category` | `long`: The category flag to check (e.g., `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH`). Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_UNKNOWN` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_HEALTH` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_POLITICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RELIGION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_FINANCE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_RACE` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_SEXUAL_ORIENTATION` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_BIOMETRICS` - `https://developer.android.com/reference/android/app/privatecompute/PccEgressException.SensitiveCategoryInfo#FLAG_CATEGORY_TRADE_UNIONS` |

| Returns ||
|---|---|
| `boolean` | `true` if the category is applicable, `false` otherwise. <br /> |

### writeToParcel

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |