setAudioScenario abstract method

Future<void> setAudioScenario(
  1. AudioScenarioType scenario
)

Sets audio scenarios.

  • scenario The audio scenarios. Under different audio scenarios, the device uses different volume types. See AudioScenarioType.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setAudioScenario(AudioScenarioType scenario);