FirebaseAnalytics.ConsentType

public enum FirebaseAnalytics.ConsentType


The type of consent to set. Supported consent types are AD_STORAGE, ANALYTICS_STORAGE, AD_USER_DATA and AD_PERSONALIZATION. Omitting a type retains its previous status.

Summary

Enum Values

AD_PERSONALIZATION

Sets consent for personalized advertising.

AD_STORAGE

Enables storage (such as device identifiers) related to advertising.

AD_USER_DATA

Sets consent for sending user data to Google for advertising purposes.

ANALYTICS_STORAGE

Enables storage (such as app identifiers) related to analytics, e.g. visit duration.

Public methods

static FirebaseAnalytics.ConsentType

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

static FirebaseAnalytics.ConsentType[]

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

Enum Values

AD_PERSONALIZATION

FirebaseAnalytics.ConsentType FirebaseAnalytics.ConsentType.AD_PERSONALIZATION

Sets consent for personalized advertising.

AD_STORAGE

FirebaseAnalytics.ConsentType FirebaseAnalytics.ConsentType.AD_STORAGE

Enables storage (such as device identifiers) related to advertising.

AD_USER_DATA

FirebaseAnalytics.ConsentType FirebaseAnalytics.ConsentType.AD_USER_DATA

Sets consent for sending user data to Google for advertising purposes.

ANALYTICS_STORAGE

FirebaseAnalytics.ConsentType FirebaseAnalytics.ConsentType.ANALYTICS_STORAGE

Enables storage (such as app identifiers) related to analytics, e.g. visit duration.

Public methods

valueOf

public static FirebaseAnalytics.ConsentType 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.ConsentType

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.ConsentType[] 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.ConsentType[]

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