DataProvider
Generic data provider for various types of tracking data.
Usage:
Call start to begin providing data and stop when data is no longer needed. Make sure to call stop to avoid potential memory leaks.
Check if the current data type is available via supportState.
Get the latest data via latestData, register a DataListener via addListener to receive data, or get data from dataFlow.
Parameters
The type of tracking data.
Inheritors
Types
The listener for receiving data from a DataProvider.
Represents the state of the current DataProvider.
Indicates whether the current type of data is supported now.
Properties
The latest tracking data.
The state of the current DataProvider.
The support state of the data type.
Functions
Adds a DataListener to receive data.
Removes a DataListener to stop receiving data.
Starts providing tracking data.