public interface PlatformDataReceiver


Callback for receiving a PlatformDataProvider's new data.

Summary

Public methods

abstract void

Called by the registered PlatformDataProvider to send new values.

abstract void

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

Public methods

onData

Added in 1.0.0
abstract void onData(@NonNull PlatformDataValues newData)

Called by the registered PlatformDataProvider to send new values.

Parameters
@NonNull PlatformDataValues newData

The new values for the registered keys.

onInvalidated

Added in 1.0.0
abstract void onInvalidated(@NonNull Set<PlatformDataKey<Object>> keys)

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
@NonNull Set<PlatformDataKey<Object>> keys

The set of keys with current data been invalidated.