TrackingConsent - DataDog/dd-sdk-android GitHub Wiki

enum TrackingConsent : Enum<TrackingConsent>

The Consent enum class providing the possible values for the Data Tracking Consent flag.

See also

TrackingConsent.GRANTED
TrackingConsent.NOT_GRANTED
TrackingConsent.PENDING

Entries

GRANTED

GRANTED

The permission to persist and dispatch data to the Datadog Endpoints was granted. Any previously stored pending data will be marked as ready for sent.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NOT_GRANTED

NOT_GRANTED

Any previously stored pending data will be deleted and any Log, Rum, Trace event will be dropped from now on without persisting it in any way.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

PENDING

PENDING

Any Log, Rum, Trace event will be persisted in a special location and will be pending there until we will receive one of the TrackingConsent.GRANTED or TrackingConsent.NOT_GRANTED flags. Based on the value of the consent flag we will decide what to do with the pending stored data.

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

Functions

valueOf

fun valueOf(value: String): TrackingConsent

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

Throws
IllegalArgumentException if this enum type has no constant with the specified name

values

fun values(): Array<TrackingConsent>

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

This method may be used to iterate over the constants.