toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsglmaps.sources
/
DataSource
Data
Source
interface
DataSource
:
EventSource
Inheritors
TileSource
Members
Members & Extensions
Properties
event
Dispatcher
Link copied to clipboard
abstract
val
eventDispatcher
:
EventDispatcher
id
Link copied to clipboard
abstract
val
id
:
String
is
Ready
Link copied to clipboard
abstract
val
isReady
:
Boolean
kind
Link copied to clipboard
abstract
val
kind
:
DataSourceKind
type
Link copied to clipboard
val
DataSource
.
type
:
DataSourceKind
Functions
add
Consumer
Link copied to clipboard
abstract
fun
addConsumer
(
consumer
:
DataSourceConsumer
)
publisher
Link copied to clipboard
inline
fun
<
EventType
:
Event
>
EventSource
.
publisher
(
eventType
:
Class
<
EventType
>
)
:
Flow
<
EventType
>
remove
Consumer
Link copied to clipboard
abstract
fun
removeConsumer
(
consumer
:
DataSourceConsumer
)
subscribe
Link copied to clipboard
inline suspend
fun
<
EventType
:
Event
>
EventSource
.
subscribe
(
eventType
:
Class
<
EventType
>
,
crossinline
handler
:
(
EventType
)
->
Unit
)
trigger
Link copied to clipboard
fun
<
EventType
:
Event
>
EventSource
.
trigger
(
event
:
EventType
)