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 829B

1234567891011121314151617181920212223242526272829
  1. import { openDialog } from '../base/dialog/actions';
  2. import PageReloadDialog from '../base/dialog/components/native/PageReloadDialog';
  3. /**
  4. * Signals that the prompt for media permission is visible or not.
  5. *
  6. * @param {boolean} _isVisible - If the value is true - the prompt for media
  7. * permission is visible otherwise the value is false/undefined.
  8. * @param {string} _browser - The name of the current browser.
  9. * @public
  10. * @returns {{
  11. * type: MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,
  12. * browser: {string},
  13. * isVisible: {boolean}
  14. * }}
  15. */
  16. export function mediaPermissionPromptVisibilityChanged(_isVisible: boolean, _browser: string) {
  17. // Dummy.
  18. }
  19. /**
  20. * Opens {@link PageReloadDialog}.
  21. *
  22. * @returns {Function}
  23. */
  24. export function openPageReloadDialog() {
  25. return openDialog(PageReloadDialog);
  26. }