OnDataPointListener

public interface OnDataPointListener

Listener used to register to live data updates from a DataSource. Used by clients wanting to subscribe to live data stream updates via SensorsClient. Each event is delivered as a DataPoint.

The listener is used both when adding a registration and when removing it. The same listener can be used for multiple registrations.

Public Method Summary

abstract void
onDataPoint(DataPoint dataPoint)
Handle a new data point from the data source.

Public Methods

public abstract void onDataPoint (DataPoint dataPoint)

Handle a new data point from the data source. The data point's data type describes the format and meaning of its values.

Note: The application doesn't own the data point object passed as a parameter after this method returns and therefore should not hold on to it, since the DataPoint can be reused by the platform.

Parameters
dataPoint The data point for this event.