onRhythmPlayerStateChanged property

void Function(RhythmPlayerStateType state, RhythmPlayerReason reason)? onRhythmPlayerStateChanged
final

Occurs when the state of virtual metronome changes.

When the state of the virtual metronome changes, the SDK triggers this callback to report the current state of the virtual metronome. This callback indicates the state of the local audio stream and enables you to troubleshoot issues when audio exceptions occur. This callback is for Android and iOS only.

  • state For the current virtual metronome status, see RhythmPlayerStateType.
  • errorCode For the error codes and error messages related to virtual metronome errors, see RhythmPlayerReason.

Implementation

final void Function(RhythmPlayerStateType state, RhythmPlayerReason reason)?
    onRhythmPlayerStateChanged;