annotationShare method

Future<void> annotationShare()

Implementation

Future<void> annotationShare() async {
  if (Platform.isAndroid) {
    if (isScreenShare) {
      EnxRtc.stopAnnotation();
      _stopForegroundTask();
    } else {
      _startForegroundTask();
      EnxRtc.startAnnotation(streamIdForAnnotation.toString());
    }
  } else if (Platform.isIOS) {
    if (isScreenShare) {
      EnxRtc.stopAnnotation();
    } else {
      EnxRtc.startAnnotation(streamId.toString());
    }
  }
}