toggle menu
mapsglmaps
androidJvm
switch theme
search in API
mapsglmaps
/
com.xweather.mapsgl.sources
/
SourceMetadata
Source
Metadata
class
SourceMetadata
<
DataType
:
SourceMetadataSchema
>
(
data
:
DataType
,
url
:
URL
?
)
:
EventSource
SourceMetadata.kt
Based on the IOS version
Author
Jason Suto 01/08/24
Members
Members & Extensions
Constructors
Source
Metadata
Link copied to clipboard
constructor
(
data
:
DataType
,
url
:
URL
?
)
Properties
_data
Link copied to clipboard
lateinit
var
_data
:
DataType
data
Link copied to clipboard
var
data
:
DataType
decode
Link copied to clipboard
var
decode
:
(
metadata
:
DataType
,
jsonData
:
ContactsContract.Contacts.Data
)
->
DataType
?
event
Dispatcher
Link copied to clipboard
open
override
val
eventDispatcher
:
EventDispatcher
has
Loaded
Link copied to clipboard
var
hasLoaded
:
Boolean
is
Loading
Link copied to clipboard
var
isLoading
:
Boolean
no
Data
Link copied to clipboard
var
noData
:
Int
?
parameters
Link copied to clipboard
var
parameters
:
MutableMap
<
String
,
String
>
success
Link copied to clipboard
var
success
:
Boolean
url
Link copied to clipboard
var
url
:
URL
?
Functions
load
Link copied to clipboard
fun
load
(
request
:
URLRequest
,
credential
:
AccessToken
)
:
Boolean
publisher
Link copied to clipboard
inline
fun
<
EventType
:
Event
>
EventSource
.
publisher
(
eventType
:
Class
<
EventType
>
)
:
Flow
<
EventType
>
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
)