TileProviderClient

interface TileProviderClient

Known direct subclasses
DefaultTileProviderClient

Implementation of TileProviderClient which can connect to a TileProviderService in either the local process, or in a remote app.

TestTileProviderClient

TileProviderClient for testing purposes.


Client to connect and interact with a TileProviderService.

Summary

Public methods

abstract @NonNull ListenableFuture<@NonNull Integer>

Gets the API version supported by the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull ResourceBuilders.Resources>

Request a resource bundle from the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull TileBuilders.Tile>

Request a tile payload from the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull Void>

Send a Tile Added notification to the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull Void>

Send a Tile Enter notification to the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull Void>

Send a Tile Leave notification to the connected TileProviderService.

abstract @NonNull ListenableFuture<@NonNull Void>

Send a Tile Removed notification to the connected TileProviderService.

Public methods

requestApiVersion

@NonNull
public abstract ListenableFuture<@NonNull IntegerrequestApiVersion()

Gets the API version supported by the connected TileProviderService.

requestResources

@NonNull
public abstract ListenableFuture<@NonNull ResourceBuilders.ResourcesrequestResources(
    @NonNull RequestBuilders.ResourcesRequest requestParams
)

Request a resource bundle from the connected TileProviderService.

requestTile

@NonNull
public abstract ListenableFuture<@NonNull TileBuilders.TilerequestTile(@NonNull RequestBuilders.TileRequest requestParams)

Request a tile payload from the connected TileProviderService.

sendOnTileAddedEvent

@NonNull
public abstract ListenableFuture<@NonNull VoidsendOnTileAddedEvent()

Send a Tile Added notification to the connected TileProviderService.

sendOnTileEnterEvent

@NonNull
public abstract ListenableFuture<@NonNull VoidsendOnTileEnterEvent()

Send a Tile Enter notification to the connected TileProviderService.

sendOnTileLeaveEvent

@NonNull
public abstract ListenableFuture<@NonNull VoidsendOnTileLeaveEvent()

Send a Tile Leave notification to the connected TileProviderService.

sendOnTileRemovedEvent

@NonNull
public abstract ListenableFuture<@NonNull VoidsendOnTileRemovedEvent()

Send a Tile Removed notification to the connected TileProviderService.