pushData method
- SenseData senseData
Push the data
The data source might do some processing on the data. As a result, the data might be modified when the getLatestData method is called or when a listener callback is triggered.
Calling this method in quick succession might ignore some calls.
Parameters
- IN accelerationData The external acceleration data
- IN positionData The external position data
Returns
- True if the push data type is available, false otherwise.
Throws
- An exception if it fails
Implementation
bool pushData(final SenseData senseData) {
if (senseData is! SenseDataImpl) {
return false;
}
final OperationResult resultString = objectMethod(
_pointerId,
'DataSourceContainer',
'pushData',
args: senseData.toJson(),
);
return resultString['result'];
}