onAudioSubscribeStateChanged property

(void Function(String channel, int uid, StreamSubscribeState oldState, StreamSubscribeState newState, int elapseSinceLastState)?) onAudioSubscribeStateChanged
final

Occurs when the audio subscribing state changes.

  • channel The channel name.
  • uid The user ID of the remote user.
  • oldState The previous subscribing status, see StreamSubscribeState for details.
  • newState The current subscribing status, see StreamSubscribeState for details.
  • elapseSinceLastState The time elapsed (ms) from the previous state to the current state.

Implementation

final void Function(
    String channel,
    int uid,
    StreamSubscribeState oldState,
    StreamSubscribeState newState,
    int elapseSinceLastState)? onAudioSubscribeStateChanged;