DataSourceEvents

DataSourceEvents.kt

Created by Jason Suto on 01/09/24. Based on the IOS version. IOS version uses structs instead of classes and objects

Types

Link copied to clipboard
object DataChange : Event
Link copied to clipboard
class LoadComplete(val sourceID: String? = null) : Event
Link copied to clipboard
class LoadStart(val sourceID: String? = null) : Event

Triggered when a source begins loading tiles.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class TileAdd(val tile: TileProtocol<DataType>? = null) : Event
Link copied to clipboard
class TileDiscard(val id: String = "tile:discard", val tile: TileProtocol<DataType>? = null, sourceID: String? = id) : Event

Triggered when a tile is discarded by the source.

Link copied to clipboard
class TileError(val id: String = "tile:error", val sourceID: String? = null, val tile: TileProtocol<DataType>? = null, val error: Error? = null) : Event

Triggered when a tile failed to load.

Link copied to clipboard
class TileLoad(val sourceID: String = "tile:load", val tile: TileProtocol<DataType>? = null, pending: Int? = null) : Event
Link copied to clipboard
class TileLoadComplete(val id: String = "tile:load:complete", val tile: TileProtocol<DataType>? = null) : Event
Link copied to clipboard
class TileLoadStart(val sourceID: String? = null, val tile: TileType? = null) : Event
Link copied to clipboard
object TileRemove : Event
Link copied to clipboard