FirebaseAnalytics.ConsentStatus

public 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 methods

static FirebaseAnalytics.ConsentStatus

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

static FirebaseAnalytics.ConsentStatus[]

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

Enum Values

DENIED

FirebaseAnalytics.ConsentStatus FirebaseAnalytics.ConsentStatus.DENIED

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

FirebaseAnalytics.ConsentStatus FirebaseAnalytics.ConsentStatus.GRANTED

Consent status indicating consent is granted.

Public methods

valueOf

public static FirebaseAnalytics.ConsentStatus valueOf(String name)

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

public static FirebaseAnalytics.ConsentStatus[] values()

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
FirebaseAnalytics.ConsentStatus[]

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