public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
Modifier and Type | Method and Description |
---|---|
Event.Builder |
appPackageName(String appPackageName)
The package name of the app that's recording the event.
|
Event.Builder |
appTitle(String appTitle)
The title of the app that's recording the event.
|
Event.Builder |
appVersionCode(String appVersionCode)
The version number of the app that's recording the event.
|
Event.Builder |
attributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
|
Event.Builder |
clientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event.Builder |
eventType(String eventType)
The name of the event.
|
Event.Builder |
metrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
|
Event.Builder |
sdkName(String sdkName)
The name of the SDK that's being used to record the event.
|
default Event.Builder |
session(Consumer<Session.Builder> session)
Information about the session in which the event occurred.
|
Event.Builder |
session(Session session)
Information about the session in which the event occurred.
|
Event.Builder |
timestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Event.Builder appPackageName(String appPackageName)
The package name of the app that's recording the event.
appPackageName
- The package name of the app that's recording the event.Event.Builder appTitle(String appTitle)
The title of the app that's recording the event.
appTitle
- The title of the app that's recording the event.Event.Builder appVersionCode(String appVersionCode)
The version number of the app that's recording the event.
appVersionCode
- The version number of the app that's recording the event.Event.Builder attributes(Map<String,String> attributes)
One or more custom attributes that are associated with the event.
attributes
- One or more custom attributes that are associated with the event.Event.Builder clientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
clientSdkVersion
- The version of the SDK that's running on the client device.Event.Builder eventType(String eventType)
The name of the event.
eventType
- The name of the event.Event.Builder metrics(Map<String,Double> metrics)
One or more custom metrics that are associated with the event.
metrics
- One or more custom metrics that are associated with the event.Event.Builder sdkName(String sdkName)
The name of the SDK that's being used to record the event.
sdkName
- The name of the SDK that's being used to record the event.Event.Builder session(Session session)
Information about the session in which the event occurred.
session
- Information about the session in which the event occurred.default Event.Builder session(Consumer<Session.Builder> session)
Information about the session in which the event occurred.
This is a convenience that creates an instance of theSession.Builder
avoiding the need to create one
manually via Session.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to session(Session)
.session
- a consumer that will call methods on Session.Builder
session(Session)
Event.Builder timestamp(String timestamp)
The date and time, in ISO 8601 format, when the event occurred.
timestamp
- The date and time, in ISO 8601 format, when the event occurred.Copyright © 2019. All rights reserved.