public final class

EventBuilders.TileInteractionEvent.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.EventBuilders.TileInteractionEvent.Builder

Overview

Builder for EventBuilders.TileInteractionEvent

Summary

Constructors
publicBuilder(int tileId, int eventType)

A builder for EventBuilders.TileInteractionEvent.

Methods
public EventBuilders.TileInteractionEventbuild()

Builds an instance from accumulated values.

public EventBuilders.TileInteractionEvent.BuildersetTimestamp(java.time.Instant instant)

Sets the timestamp of when the interaction was reported.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(int tileId, int eventType)

A builder for EventBuilders.TileInteractionEvent.

Parameters:

tileId: 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: the type of the EventBuilders.TileInteractionEvent.

Methods

public EventBuilders.TileInteractionEvent.Builder setTimestamp(java.time.Instant instant)

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

Builds an instance from accumulated values.