You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.native.ts 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { ConnectionFailedError } from '../base/connection/types';
  2. import { openDialog } from '../base/dialog/actions';
  3. import PageReloadDialog from '../base/dialog/components/native/PageReloadDialog';
  4. /**
  5. * Signals that the prompt for media permission is visible or not.
  6. *
  7. * @param {boolean} _isVisible - If the value is true - the prompt for media
  8. * permission is visible otherwise the value is false/undefined.
  9. * @param {string} _browser - The name of the current browser.
  10. * @public
  11. * @returns {{
  12. * type: MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
  13. * browser: {string},
  14. * isVisible: {boolean}
  15. * }}
  16. */
  17. export function mediaPermissionPromptVisibilityChanged(_isVisible: boolean, _browser: string) {
  18. // Dummy.
  19. }
  20. /**
  21. * Opens {@link PageReloadDialog}.
  22. *
  23. * @param {Error} conferenceError - The conference error that caused the reload.
  24. * @param {Error} configError - The conference error that caused the reload.
  25. * @param {Error} connectionError - The conference error that caused the reload.
  26. * @returns {Function}
  27. */
  28. export function openPageReloadDialog(
  29. conferenceError?: Error, configError?: Error, connectionError?: ConnectionFailedError) {
  30. return openDialog(PageReloadDialog, {
  31. conferenceError,
  32. configError,
  33. connectionError
  34. });
  35. }