TileUiClient
class TileUiClient : AutoCloseable
UI client for a single tile. This handles binding to a Tile Service, and inflating the given tile contents into the provided parentView. This also handles requested updates, re-fetching the tile on-demand.
After creation, you should call {@link #connect} to connect and start the initial fetch. Likewise, when the owning activity is destroyed, you should call {@link #close} to disconnect and release resources.
Summary
Public constructors |
---|
TileUiClient( |
Public functions |
|
---|---|
open Unit |
Shut down this {@link TileManager}. |
Unit |
Initialize this {@link TileManager}. |
Public constructors
TileUiClient
TileUiClient(
context: Context,
component: ComponentName,
parentView: ViewGroup
)
Public functions
close
@MainThread
open fun close(): Unit
Shut down this {@link TileManager}. This will cancel any scheduled updates, and close the connection with the tile service.
connect
@MainThread
fun connect(): Unit
Initialize this {@link TileManager}. This will cause the {@link TileManager} to connect to the tile service and request the first tile. It will also trigger any requested updates.