SensitiveCategoryInfo


class SensitiveCategoryInfo : Parcelable
kotlin.Any
   ↳ android.app.privatecompute.PccEgressException.SensitiveCategoryInfo

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

Summary

Constants
static Long

static Long

static Long

static Long

static Long

static Long

static Long

static Long

static Long

Inherited constants
Public constructors
SensitiveCategoryInfo(categoriesBitmask: Long)

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

Public methods
Int

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

Long

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

Boolean

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

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<PccEgressException.SensitiveCategoryInfo!>

Constants

FLAG_CATEGORY_BIOMETRICS

static val FLAG_CATEGORY_BIOMETRICS: Long
Value: 64L

FLAG_CATEGORY_FINANCE

static val FLAG_CATEGORY_FINANCE: Long
Value: 8L

FLAG_CATEGORY_HEALTH

static val FLAG_CATEGORY_HEALTH: Long
Value: 1L

FLAG_CATEGORY_POLITICS

static val FLAG_CATEGORY_POLITICS: Long
Value: 2L

FLAG_CATEGORY_RACE

static val FLAG_CATEGORY_RACE: Long
Value: 16L

FLAG_CATEGORY_RELIGION

static val FLAG_CATEGORY_RELIGION: Long
Value: 4L

FLAG_CATEGORY_SEXUAL_ORIENTATION

static val FLAG_CATEGORY_SEXUAL_ORIENTATION: Long
Value: 32L

FLAG_CATEGORY_TRADE_UNIONS

static val FLAG_CATEGORY_TRADE_UNIONS: Long
Value: 128L

FLAG_CATEGORY_UNKNOWN

static val FLAG_CATEGORY_UNKNOWN: Long
Value: 256L

Public constructors

SensitiveCategoryInfo

SensitiveCategoryInfo(categoriesBitmask: Long)

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

Parameters
categoriesBitmask Long: The bitmask of detected sensitive categories.
Value is either 0 or a combination of the following:

Public methods

describeContents

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 writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getApplicableCategories

fun getApplicableCategories(): Long

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

Return
Long A bitmask of android.app.privatecompute.PccEgressException.SensitiveCategoryInfo.SensitiveCategory constants.
Value is either 0 or a combination of the following:

isCategoryDetected

fun isCategoryDetected(category: Long): Boolean

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

Parameters
category Long: The category flag to check (e.g., FLAG_CATEGORY_HEALTH).
Value is either 0 or a combination of the following:
Return
Boolean true if the category is applicable, false otherwise.

writeToParcel

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

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties