SourceMetadata

SourceMetadata.kt

Based on the IOS version

Author

Jason Suto 01/08/24

Constructors

Link copied to clipboard
constructor(data: DataType, url: URL?)

Properties

Link copied to clipboard
lateinit var _data: DataType
Link copied to clipboard
Link copied to clipboard
var decode: (metadata: DataType, jsonData: ContactsContract.Contacts.Data) -> DataType?
Link copied to clipboard
open override val eventDispatcher: EventDispatcher
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var noData: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var url: URL?

Functions

Link copied to clipboard
fun getDatasetValidTimesAtIndex(index: Int, max: Int = maxValidTimeIntervals): List<Date>

Returns the valid times for the dataset at the provided index.

Link copied to clipboard
fun getValidTimes(index: Int = 0, max: Int = maxValidTimeIntervals): List<Date>

Returns an array of valid times for the source. If the source has multiple datasets, the valid times for the first dataset will be returned.

Link copied to clipboard
suspend fun load(request: URLRequest, layerId: String): Boolean
Link copied to clipboard
inline fun <EventType : Event> EventSource.publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
inline suspend fun <EventType : Event> EventSource.subscribe(eventType: Class<EventType>, crossinline handler: (EventType) -> Unit)
Link copied to clipboard