TileUpdateRequester


public interface TileUpdateRequester


Interface used for a Tile Service to notify a Tile Renderer that it should fetch a new Timeline from it.

Summary

Public methods

abstract void

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service.

default void
requestUpdate(@NonNull Class<TileService> tileService, int tileId)

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service for a specific tile id.

Public methods

requestUpdate

Added in 1.0.0
abstract void requestUpdate(@NonNull Class<TileService> tileService)

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service.

requestUpdate

Added in 1.6.0-alpha01
default void requestUpdate(@NonNull Class<TileService> tileService, int tileId)

Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service for a specific tile id.

If sdk version is API 36 or lower, or the tile id is invalid (i.e. doesn't exist or is not owned by your package); tile id will be ignored and this method will be equivalent to requestUpdate.

Parameters
@NonNull Class<TileService> tileService

The Tile Service to request an update from.

int tileId

The id of the tile to request an update from.