EventBuilders.TileAddEvent.Builder


public final class EventBuilders.TileAddEvent.Builder


Builder for TileAddEvent

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 0)
Builder()

Creates an instance of Builder.

Public methods

@NonNull EventBuilders.TileAddEvent

Builds an instance from accumulated values.

@NonNull EventBuilders.TileAddEvent.Builder
setTileId(int tileId)

Sets instance ID of the added tile, allocated when the tile instance was added to the carousel.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull EventBuilders.TileAddEvent build()

Builds an instance from accumulated values.

setTileId

Added in 1.2.0
public @NonNull EventBuilders.TileAddEvent.Builder setTileId(int tileId)

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