ImageTileSource

class ImageTileSource(val id: String, typeString: String, val authenticator: XweatherAuthenticator?) : TileSource<TileData>

ImageTileSource.kt

Adapted from IOS version

Author

by Jason Suto on 11/30/23.

Constructors

Link copied to clipboard
constructor(id: String, typeString: String, authenticator: XweatherAuthenticator?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val authenticator: XweatherAuthenticator?
Link copied to clipboard
open override val bounds: LatLonBounds
Link copied to clipboard
Link copied to clipboard
open override val eventDispatcher: EventDispatcher
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val isLoading: Boolean
Link copied to clipboard
open override val isReady: Boolean
Link copied to clipboard
Link copied to clipboard
open override val kind: DataSourceKind
Link copied to clipboard
open override var maxZoom: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var metaDataNeeded: Boolean
Link copied to clipboard
open override var metadataURL: String?
Link copied to clipboard
open override var minZoom: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var tileCache: TileCache<DataType>
Link copied to clipboard
open override var tileManager: TileRequestManager<TileData>
Link copied to clipboard
Link copied to clipboard
open override var tileSize: TileSize
Link copied to clipboard
Link copied to clipboard
open override var tileURL: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addConsumer(consumer: DataSourceConsumer)
Link copied to clipboard
open override fun contains(coord: TileCoord): Boolean
Link copied to clipboard
suspend fun <DataType : TileData> TileSource<DataType>.contains(coord: TileCoord): Boolean
Link copied to clipboard
open suspend override fun fetchMetadata()

Returns the metadata for the source, which can be loaded from a remote source.

Link copied to clipboard
open override fun getMetadataURL(): URL?
Link copied to clipboard
fun <DataType : TileData> TileSource<DataType>.init(id: String, authenticator: Authenticator<MediaSession.Token>?)
Link copied to clipboard
Link copied to clipboard
suspend fun onTileError(tile: TileType, error: Error)
Link copied to clipboard
open suspend override fun parseTile(tile: TileType, data: ByteArray, headers: Headers?): Bitmap
Link copied to clipboard
open override fun prepareMetadataRequest(request: URLRequest)
Link copied to clipboard
open override fun prepareTileRequest(request: URLRequest)
Link copied to clipboard
inline fun <EventType : Event> EventSource.publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
open override fun removeConsumer(consumer: DataSourceConsumer)
Link copied to clipboard
open suspend override fun requestTile(coord: TileCoord, options: TileRequestOptions): Any?

Called from TilePyramid.requestTiles(), This will eventually initiate the download of bitmaps.

Link copied to clipboard
open suspend override fun shouldRequestTile(tile: TileType, reload: Boolean): Boolean
Link copied to clipboard
suspend fun <DataType : TileData> TileSource<DataType>.shouldRequestTile(tile: TileType, reload: Boolean): Boolean
Link copied to clipboard
inline suspend fun <EventType : Event> EventSource.subscribe(eventType: Class<EventType>, crossinline handler: (EventType) -> Unit)
Link copied to clipboard