onScreenShareButtonPressed method

void onScreenShareButtonPressed()

Implementation

void onScreenShareButtonPressed() {
  if (_store.currentUser.hasScreenStream.value) {
    showConferenceDialog(
      title: 'liveScreen'.roomTr,
      message: 'stopTUIRoomScreenShare'.roomTr,
      cancelText: 'cancel'.roomTr,
      confirmText: 'stop'.roomTr,
      onConfirm: () {
        _engineManager.stopScreenSharing();
        Get.back();
      },
    );
  } else {
    _startScreenSharing();
  }
}