useAutoHideUIInterfaces
function useAutoHideUIInterfaces(
isStreamReady,
isDisabledByConfig,
shouldDisplay?): object;
Hook to signal display state (show/hide) based on UI inactivity timeout
Parameters
| Parameter | Type | Description |
|---|---|---|
isStreamReady | boolean | only apply autoHide if we've got a ready stream |
isDisabledByConfig | boolean | if true then auto hiding is disabled, UI controls will not be hidden |
shouldDisplay? | (shouldDisplay) => void | callback to signal when to hide and when to show |
Returns
object
control to enable/disable auto hide functionality
| Name | Type | Default value |
|---|---|---|
enableAutoHide | Dispatch<SetStateAction<boolean>> | setEnabled |
enableAutoHideConstraintBased() | (constraint) => void | - |