monitorStateChanges method

Future<void> monitorStateChanges(
  1. void callback(
    1. PlayerState value
    )
)

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);
}