Record Class AppAnalytics.Settings
java.lang.Object
java.lang.Record
com.iizix.jetty.AppAnalytics.Settings
- Record Components:
measurementId- The GA4 Measurement ID, matchingModuleApp.GA_MEASUREMENT_ID_PATTERN.consent- The consent choice:ModuleApp.GA_CONSENT_IIZI_ASKS,ModuleApp.GA_CONSENT_APP_ASKSorModuleApp.GA_CONSENT_NONE.name- The application's name for the consent prompt, in the language of the request where the application has one (ModuleApp.getName(lang), the sourcePWAManifestuses), or null for none: the client then names the appID.
- Enclosing class:
AppAnalytics
public static record AppAnalytics.Settings(String measurementId, int consent, String name) extends Record
The per-application settings an
IExternalBrowserPages implementation answers for IExternalBrowserPages.getAppAnalytics(String).- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionintconsent()Returns the value of theconsentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeasurementIdrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Settings
Settings without a name: the consent prompt names the appID.- Parameters:
measurementId- The GA4 Measurement ID.consent- The consent choice.
Settings
Creates an instance of aSettingsrecord class.- Parameters:
measurementId- the value for themeasurementIdrecord componentconsent- the value for theconsentrecord componentname- the value for thenamerecord component
Method Details
toString
hashCode
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.measurementId
Returns the value of themeasurementIdrecord component.- Returns:
- the value of the
measurementIdrecord component
consent
name