setScreenCaptureContentHint abstract method

Future<void> setScreenCaptureContentHint(
  1. VideoContentHint contentHint
)

Sets the content type for screen sharing.

The SDK uses different algorithms to optimize the sharing effect based on the content type. If you do not call this method, the SDK defaults the screen sharing content type to contentHintNone, meaning no specific content type is set. This method can be called before or after starting screen sharing.

  • contentHint The content type of the screen sharing. See VideoContentHint.

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> setScreenCaptureContentHint(VideoContentHint contentHint);