interface PlatformDataReceiver


Callback for receiving a PlatformDataProvider's new data.

Summary

Public functions

Unit

Called by the registered PlatformDataProvider to send new values.

Unit

Called by the registered PlatformDataProvider to notify that the current data has been invalidated.

Public functions

onData

Added in 1.0.0
fun onData(newData: PlatformDataValues): Unit

Called by the registered PlatformDataProvider to send new values.

Parameters
newData: PlatformDataValues

The new values for the registered keys.

onInvalidated

Added in 1.0.0
fun onInvalidated(keys: (Mutable)Set<PlatformDataKey<Any!>!>): Unit

Called by the registered PlatformDataProvider to notify that the current data has been invalidated. Typically, this invalidated status is transient and subsequent onData call can be followed to sent new values.

Parameters
keys: (Mutable)Set<PlatformDataKey<Any!>!>

The set of keys with current data been invalidated.