You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
callback that will be executed before enter in fullscreen mode.
38
+
> - __onChange?__: _(evt: Event)=>void_
39
+
callback that will be executed when target element fullscreen change.
40
+
> - __onExit?__: _()=>void|Promise<void>_
41
+
callback that will be executed before exit from fullscreen mode.
42
+
>
43
+
44
+
> ### Returns
45
+
>
46
+
> __result__: array with: _isFullscreen_: boolean to indicate if there is fullscreen or not; _refCallback_: ref callback to be attached at target element; _enter_: function to enter in fullscreen mode; _exit_: function to exit from fullscreen mode.
* **`useFullscreen`**: Hook to use [Fullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API).
6
+
* @param {()=>void|Promise<void>} [onEnter] - callback that will be executed before enter in fullscreen mode.
7
+
* @param {(evt: Event)=>void} [onChange] - callback that will be executed when target element fullscreen change.
8
+
* @param {()=>void|Promise<void>} [onExit] - callback that will be executed before exit from fullscreen mode.
9
+
* @returns {[boolean, RefCallback<T>, (opts?: FullscreenOptions) => Promise<void>, () => Promise<void>]} result - array with: _isFullscreen_: boolean to indicate if there is fullscreen or not; _refCallback_: ref callback to be attached at target element; _enter_: function to enter in fullscreen mode; _exit_: function to exit from fullscreen mode.
0 commit comments