Interface Event.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Event.Builder,Event>, SdkBuilder<Event.Builder,Event>, SdkPojo
Enclosing class:
Event

public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
  • Method Details

    • appPackageName

      Event.Builder appPackageName(String appPackageName)

      The package name of the app that's recording the event.

      Parameters:
      appPackageName - The package name of the app that's recording the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • appTitle

      Event.Builder appTitle(String appTitle)

      The title of the app that's recording the event.

      Parameters:
      appTitle - The title of the app that's recording the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • appVersionCode

      Event.Builder appVersionCode(String appVersionCode)

      The version number of the app that's recording the event.

      Parameters:
      appVersionCode - The version number of the app that's recording the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      Event.Builder attributes(Map<String,String> attributes)

      One or more custom attributes that are associated with the event.

      Parameters:
      attributes - One or more custom attributes that are associated with the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientSdkVersion

      Event.Builder clientSdkVersion(String clientSdkVersion)

      The version of the SDK that's running on the client device.

      Parameters:
      clientSdkVersion - The version of the SDK that's running on the client device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventType

      Event.Builder eventType(String eventType)

      The name of the event.

      Parameters:
      eventType - The name of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      Event.Builder metrics(Map<String,Double> metrics)

      One or more custom metrics that are associated with the event.

      Parameters:
      metrics - One or more custom metrics that are associated with the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sdkName

      Event.Builder sdkName(String sdkName)

      The name of the SDK that's being used to record the event.

      Parameters:
      sdkName - The name of the SDK that's being used to record the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • session

      Event.Builder session(Session session)

      Information about the session in which the event occurred.

      Parameters:
      session - Information about the session in which the event occurred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • session

      default Event.Builder session(Consumer<Session.Builder> session)

      Information about the session in which the event occurred.

      This is a convenience method that creates an instance of the Session.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).

      Parameters:
      session - a consumer that will call methods on Session.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • timestamp

      Event.Builder timestamp(String timestamp)

      The date and time, in ISO 8601 format, when the event occurred.

      Parameters:
      timestamp - The date and time, in ISO 8601 format, when the event occurred.
      Returns:
      Returns a reference to this object so that method calls can be chained together.