# TrackingConsentState

enum TrackingConsentState : Enum<TrackingConsentState>

Tracks user consent for analytics and data collection.

## Entries

PENDING
Link copied to clipboard
PENDING

Initial state indicating that consent has not been requested from the user.

GRANTED
Link copied to clipboard
GRANTED

The user has granted consent. Logging and data collection are allowed.

DENIED
Link copied to clipboard
DENIED

The user has denied consent. Logging and data collection are prohibited.

NOT_REQUIRED
Link copied to clipboard
NOT_REQUIRED

Consent is not required, typically because the user is not in a jurisdiction where consent is mandatory for data collection.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<TrackingConsentState>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): TrackingConsentState

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

values
Link copied to clipboard
fun values(): Array<TrackingConsentState>

Returns an array containing the constants of this enum type, in the order they're declared.