public enum ConsentMode

  1. Object
  2. Enum<ConsentMode>
  3. ConsentMode

ImplementsComparable<ConsentMode>

Controls the default behaviour of Analytics before the application has recorded an explicit consent choice from the user. This is the central switch for GDPR / CCPA compliance.

Enum constants

OPT_INNothing is collected or transmitted until the application records a positive consent via Analytics.setConsent(AnalyticsConsent).
OPT_OUTCollection is active by default; the user (or the app on the user’s behalf) may withdraw consent at any time.

Methods

public static ConsentMode[] values()
public static ConsentMode valueOf(String name)

Inherited methods

Enum constant details

OPT_IN

OPT_IN
Nothing is collected or transmitted until the application records a positive consent via Analytics.setConsent(AnalyticsConsent). This is the privacy-safe default and the recommended setting for apps distributed in regulated jurisdictions.

OPT_OUT

OPT_OUT
Collection is active by default; the user (or the app on the user’s behalf) may withdraw consent at any time. Easier adoption but places the compliance burden on the integrator.

Method details

values

public static ConsentMode[] values()

valueOf

public static ConsentMode valueOf(String name)