ios_getAudioPlaybackDeviceMute method

Future<int?> ios_getAudioPlaybackDeviceMute(
  1. bool mute
)

@platform ios @detail api @author dixing @brief Get the mute state of the current audio playback device. @param mute
- true: Mute - false: Speaking @return Method call result
- 0: Success. - < 0: failure

Implementation

Future<int?> ios_getAudioPlaybackDeviceMute(bool mute) async {
  $() => ($instance as $p_i.ByteRTCAudioDeviceManager)
      .getAudioPlaybackDeviceMute(mute);

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}