Stay organized with collections Save and categorize content based on your preferences.

Builder

class Builder
kotlin.Any
   ↳ com.google.android.gms.dtdi.core.AnalyticsInfo.Builder

Direct use of AnalyticsInfo.Builder is not supported.

Builder for AnalyticsInfo.

Summary

Public constructors

Direct use of AnalyticsInfo.Builder is not supported.

Public methods

AnalyticsInfo

Build the AnalyticsInfo.

AnalyticsInfo.Builder
setCorrelationId(correlationId: ByteArray)

Randomly generated, PII-free identifier for a group of devices participating in a single experience.

AnalyticsInfo.Builder
setGenesisMillis(genesisMillis: Long)

Time this correlation data was created.

AnalyticsInfo.Builder
setLocalEphemeralDeviceId(localEphemeralDeviceId: ByteArray)

Randomly generated, PII-free, identifier, for the local device in a single experience.

AnalyticsInfo.Builder
setParentCorrelationId(parentCorrelationId: ByteArray)

A parent Correlation Identifier that this experience is associated with.

AnalyticsInfo.Builder
setRegenerated(regenerated: Boolean)

Indicates whether this set of identifiers was regenerated because of expiration or not.

Public constructors

<init>

Builder()

Direct use of AnalyticsInfo.Builder is not supported.

Builder for AnalyticsInfo.

Public methods

build

fun build(): AnalyticsInfo

Build the AnalyticsInfo.

setCorrelationId

fun setCorrelationId(correlationId: ByteArray): AnalyticsInfo.Builder

Randomly generated, PII-free identifier for a group of devices participating in a single experience.

setGenesisMillis

fun setGenesisMillis(genesisMillis: Long): AnalyticsInfo.Builder

Time this correlation data was created. Used to track identifier expiration.

setLocalEphemeralDeviceId

fun setLocalEphemeralDeviceId(localEphemeralDeviceId: ByteArray): AnalyticsInfo.Builder

Randomly generated, PII-free, identifier, for the local device in a single experience.

setParentCorrelationId

fun setParentCorrelationId(parentCorrelationId: ByteArray): AnalyticsInfo.Builder

A parent Correlation Identifier that this experience is associated with.

setRegenerated

fun setRegenerated(regenerated: Boolean): AnalyticsInfo.Builder

Indicates whether this set of identifiers was regenerated because of expiration or not.