DataSourceListener class Sensor Data Source
A listener that receives data from a data source.
Constructors
- DataSourceListener({void onPlayingStatusChanged(DataType dataType, PlayingStatus status)?, void onDataInterruptionEvent(DataType dataType, DataInterruptionReason reason, bool ended)?, void onNewData(SenseData data)?, void onProgressChanged(int)?})
-
Create a new instance of the DataSourceListener instance with the given callbacks.
factory
- DataSourceListener.init(int id)
Properties
Methods
-
dispose(
) → void -
handleEvent(
Map arguments) → void - Method called when event is called from the native side.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOnDataInterruptionEvent(
void onDataInterruptionEvent(DataType dataType, DataInterruptionReason reason, bool ended)) → void - Register a callback that is called when data is no longer available.
-
registerOnNewData(
void onNewData(SenseData data)) → void - Register a callback that is called when new data is available.
-
registerOnPlayingStatusChanged(
void onPlayingStatusChanged(DataType dataType, PlayingStatus status)) → void - Register a callback that is called when the playing status of the data source changes.
-
registerOnProgressChanged(
void onProgressChanged(int progress)) → void - Register a callback that is called when the progress of the data source changes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited