setScreenCaptureScenario abstract method

Future<void> setScreenCaptureScenario(
  1. ScreenScenarioType screenScenario
)

Sets the screen sharing scenario.

When you start screen sharing or window sharing, you can call this method to set the screen sharing scenario. The SDK adjusts the video quality and experience of the sharing according to the scenario. Agora recommends that you call this method before joining a channel.

  • screenScenario The screen sharing scenario. See ScreenScenarioType.

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> setScreenCaptureScenario(ScreenScenarioType screenScenario);