ios_followSystemCaptureDevice method

Future ios_followSystemCaptureDevice(
  1. BOOL followed
)

@platform ios @detail api @author yezijian.me @brief Set the audio capture device to follow the OS default setting or not. @param followed
- true: follow the OS setting. You can not call setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice} at the same time. The default value. - false: do not follow the OS setting. You can call setAudioCaptureDevice:{@link #ByteRTCAudioDeviceManager#setAudioCaptureDevice} to set the audio capture device.

Implementation

Future ios_followSystemCaptureDevice(BOOL followed) async {
  $() => ($instance as $p_i.ByteRTCAudioDeviceManager)
      .followSystemCaptureDevice(followed);

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