FirebaseAnalytics.ConsentStatus

enum FirebaseAnalytics.ConsentStatus


The status value of the consent type. Supported statuses are GRANTED and DENIED.

Summary

Enum Values

DENIED

Consent status indicating consent is denied.

GRANTED

Consent status indicating consent is granted.

Public functions

java-static FirebaseAnalytics.ConsentStatus!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<FirebaseAnalytics.ConsentStatus!>!

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

Enum Values

DENIED

val FirebaseAnalytics.ConsentStatus.DENIEDFirebaseAnalytics.ConsentStatus

Consent status indicating consent is denied. For an overview of which data is sent when consent is denied, see SDK behavior with consent mode.

GRANTED

val FirebaseAnalytics.ConsentStatus.GRANTEDFirebaseAnalytics.ConsentStatus

Consent status indicating consent is granted.

Public functions

valueOf

java-static fun valueOf(name: String!): FirebaseAnalytics.ConsentStatus!

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

Returns
FirebaseAnalytics.ConsentStatus!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<FirebaseAnalytics.ConsentStatus!>!

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.

Returns
Array<FirebaseAnalytics.ConsentStatus!>!

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