setScreenShareEnabled method

Future<LocalTrackPublication<LocalTrack>?> setScreenShareEnabled(
  1. bool enabled,
  2. {bool? captureScreenAudio,
  3. ScreenShareCaptureOptions? screenShareCaptureOptions}
)

Shortcut for publishing a TrackSource.screenShareVideo

Implementation

Future<LocalTrackPublication?> setScreenShareEnabled(bool enabled,
    {bool? captureScreenAudio,
    ScreenShareCaptureOptions? screenShareCaptureOptions}) async {
  return setSourceEnabled(TrackSource.screenShareVideo, enabled,
      captureScreenAudio: captureScreenAudio,
      screenShareCaptureOptions: screenShareCaptureOptions);
}