monitorStateChanges method
Start getting significant audio updates through callback
.
callback
is invoked on a background isolate and will not have direct
access to the state held by the main isolate (or any other isolate).
Implementation
Future<void> monitorStateChanges(
void Function(PlayerState value) callback,
) async {
return _callWithHandle('monitorNotificationStateChanges', callback);
}