EventBuilders.TileInteractionEvent.Builder


class EventBuilders.TileInteractionEvent.Builder


Builder for TileInteractionEvent

Summary

Public constructors

Builder(tileId: Int, eventType: Int)

A builder for TileInteractionEvent.

Public functions

EventBuilders.TileInteractionEvent

Builds an instance from accumulated values.

EventBuilders.TileInteractionEvent.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTimestamp(instant: Instant)

Sets the timestamp of when the interaction was reported.

Public constructors

Builder

Added in 1.4.0
Builder(tileId: Int, eventType: Int)

A builder for TileInteractionEvent.

Parameters
tileId: Int

the instance ID of the tile, allocated when the tile instance is added to the carousel. This ID will remain the same for this tile instance as long it is not removed from the carousel.

eventType: Int

the type of the TileInteractionEvent.

Throws
java.lang.IllegalArgumentException

when the provided eventType is equal to UNKNOWN or not defined by EventType.

Public functions

build

Added in 1.4.0
fun build(): EventBuilders.TileInteractionEvent

Builds an instance from accumulated values.

setTimestamp

Added in 1.4.0
@RequiresSchemaVersion(major = 1, minor = 400)
fun setTimestamp(instant: Instant): EventBuilders.TileInteractionEvent.Builder

Sets the timestamp of when the interaction was reported. Defaults to now (Created at the time of Builder constructor call) if not provided.