setScreenCaptureScenario abstract method

Future<void> setScreenCaptureScenario(
  1. ScreenScenarioType screenScenario
)

Sets the screen sharing scenario.

When starting screen or window sharing, you can call this method to set the screen sharing scenario. The SDK adjusts the quality of the shared screen based on the scenario you set. Agora recommends calling 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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> setScreenCaptureScenario(ScreenScenarioType screenScenario);