Stay organized with collections
Save and categorize content based on your preferences.
AnalyticsInfo
class
AnalyticsInfo
:
AbstractSafeParcelable
,
ReflectedParcelable
Direct use of AnalyticsInfo
is not supported.
Information used to log new events downstream of a top-level event. This includes events within
an experience (using correlation_info
) and events within an experience (using correlation_id
).
Summary
Direct use of AnalyticsInfo.Builder
is not supported.
Direct use of AnalyticsInfo
is not supported.
Randomly generated, PII-free identifier for a group of devices participating in a single
experience.
Time this correlation data was created.
Randomly generated, PII-free, identifier, for the local device in a single experience.
A parent Correlation Identifier that this experience is associated with.
Indicates whether this set of identifiers was regenerated because of expiration or not.
Required Parcelable Creator.
Public constructors
<init>
AnalyticsInfo
(
genesisMillis
:
Long
,
correlationId
:
ByteArray
,
localEphemeralDeviceId
:
ByteArray
,
regenerated
:
Boolean
,
parentCorrelationId
:
ByteArray
?
=
null )
Direct use of AnalyticsInfo
is not supported.
Information used to log new events downstream of a top-level event. This includes events within
an experience (using correlation_info
) and events within an experience (using correlation_id
).
Public methods
hashCode
fun
hashCode
(
)
:
Int
writeToParcel
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)
:
Unit
Properties
correlationId
val
correlationId
:
ByteArray
Randomly generated, PII-free identifier for a group of devices participating in a single
experience.
genesisMillis
val
genesisMillis
:
Long
Time this correlation data was created. Used to track identifier expiration.
localEphemeralDeviceId
val
localEphemeralDeviceId
:
ByteArray
Randomly generated, PII-free, identifier, for the local device in a single experience.
parentCorrelationId
val
parentCorrelationId
:
ByteArray
?
A parent Correlation Identifier that this experience is associated with.
regenerated
val
regenerated
:
Boolean
Indicates whether this set of identifiers was regenerated because of expiration or not.
Companion properties
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAnalyticsInfo\u003c/code\u003e stores information for logging events within a larger event or experience, using identifiers like \u003ccode\u003ecorrelation_id\u003c/code\u003e and \u003ccode\u003ecorrelation_info\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes identifiers such as \u003ccode\u003ecorrelationId\u003c/code\u003e, \u003ccode\u003elocalEphemeralDeviceId\u003c/code\u003e, and optionally \u003ccode\u003eparentCorrelationId\u003c/code\u003e for tracking event relationships.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egenesisMillis\u003c/code\u003e records the creation time for correlation data, while \u003ccode\u003eregenerated\u003c/code\u003e indicates if identifiers were updated due to expiration.\u003c/p\u003e\n"],["\u003cp\u003eDirect use of \u003ccode\u003eAnalyticsInfo\u003c/code\u003e and its builder is not supported, it's intended for internal system usage.\u003c/p\u003e\n"]]],["`AnalyticsInfo` logs events within experiences, using `correlation_info` and `correlation_id`. It contains a `correlationId` (PII-free identifier for a group of devices), `genesisMillis` (correlation data creation time), `localEphemeralDeviceId` (PII-free identifier for the local device), `parentCorrelationId` (associated parent identifier), and `regenerated` (whether identifiers were regenerated). Methods include `equals`, `hashCode`, and `writeToParcel`. Direct use of `AnalyticsInfo` and `AnalyticsInfo.Builder` is unsupported. It has a required `CREATOR` for Parcelable implementation.\n"],null,["# AnalyticsInfo\n=============\n\n```\nclass AnalyticsInfo : AbstractSafeParcelable, ReflectedParcelable\n```\n\n|-----------------------------------------------------|\n| [com.google.android.gms.dtdi.core.AnalyticsInfo](#) |\n\nDirect use of `AnalyticsInfo` is not supported.\n\nInformation used to log new events downstream of a top-level event. This includes events within\nan experience (using `correlation_info`) and events within an experience (using\n`correlation_id`).\n\nSummary\n-------\n\n| ### Nested classes ||\n|---|----------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Builder](/android/reference/com/google/android/gms/dtdi/core/AnalyticsInfo.Builder) Direct use of `AnalyticsInfo.Builder` is not supported. |\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [\u003cinit\u003e](#%3Cinit%3E(kotlin.Long,%20kotlin.ByteArray,%20kotlin.ByteArray,%20kotlin.Boolean,%20kotlin.ByteArray))`(`genesisMillis:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `correlationId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, `localEphemeralDeviceId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, `regenerated:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `parentCorrelationId:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?` `=` null)` Direct use of `AnalyticsInfo` is not supported. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [correlationId](#correlationId:kotlin.ByteArray) Randomly generated, PII-free identifier for a group of devices participating in a single experience. |\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [genesisMillis](#genesisMillis:kotlin.Long) Time this correlation data was created. |\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | [localEphemeralDeviceId](#localEphemeralDeviceId:kotlin.ByteArray) Randomly generated, PII-free, identifier, for the local device in a single experience. |\n| [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)? | [parentCorrelationId](#parentCorrelationId:kotlin.ByteArray) A parent Correlation Identifier that this experience is associated with. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [regenerated](#regenerated:kotlin.Boolean) Indicates whether this set of identifiers was regenerated because of expiration or not. |\n\n| ### Companion properties ||\n|-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [Creator](https://developer.android.com/reference/android/os/Parcelable/Creator.html)\\\u003c[AnalyticsInfo](#)\\\u003e | [CREATOR](#Companion.CREATOR:android.os.Parcelable.Creator) Required Parcelable Creator. |\n\nPublic constructors\n-------------------\n\n### \\\u003cinit\\\u003e\n\n```\nAnalyticsInfo(\n genesisMillis: Long, \n correlationId: ByteArray, \n localEphemeralDeviceId: ByteArray, \n regenerated: Boolean, \n parentCorrelationId: ByteArray? = null)\n```\n\nDirect use of `AnalyticsInfo` is not supported.\n\nInformation used to log new events downstream of a top-level event. This includes events within\nan experience (using `correlation_info`) and events within an experience (using\n`correlation_id`).\n\nPublic methods\n--------------\n\n### equals\n\n```\nfun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nfun hashCode(): Int\n``` \n\n### writeToParcel\n\n```\nfun writeToParcel(\n dest: Parcel, \n flags: Int\n): Unit\n```\n\nProperties\n----------\n\n### correlationId\n\n```\nval correlationId: ByteArray\n```\n\nRandomly generated, PII-free identifier for a group of devices participating in a single\nexperience. \n\n### genesisMillis\n\n```\nval genesisMillis: Long\n```\n\nTime this correlation data was created. Used to track identifier expiration. \n\n### localEphemeralDeviceId\n\n```\nval localEphemeralDeviceId: ByteArray\n```\n\nRandomly generated, PII-free, identifier, for the local device in a single experience. \n\n### parentCorrelationId\n\n```\nval parentCorrelationId: ByteArray?\n```\n\nA parent Correlation Identifier that this experience is associated with. \n\n### regenerated\n\n```\nval regenerated: Boolean\n```\n\nIndicates whether this set of identifiers was regenerated because of expiration or not.\n\nCompanion properties\n--------------------\n\n### CREATOR\n\n```\nval CREATOR: Creator\u003cAnalyticsInfo\u003e\n```\n\nRequired Parcelable Creator."]]