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 |
requestUpdate(@NonNull Class<TileService> tileService)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
abstract void requestUpdate(@NonNull Class<TileService> tileService)
Notify the Tile Renderer that it should fetch a new Timeline from this Tile Service.
requestUpdate
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. |