Skip to main content



Thanks to this hook, we are able to use information about the connection status and screen focus state. Additionally, we also have options to manipulate it's global state. This hook uses the AppManager available on the Builder instance.

It returns the status of isOnline and isFocused, and the actions that allow you to change them.

const { isOnline, setOnline } = useAppManager(builder);

const { isFocused, setFocused } = useAppManager(builder);



Returned values from this hook.

const values = useAppManager(builder);

Name Type Description
isFocused boolean Is window focused
isOnline boolean Network online status
setFocused (isFocused: boolean) => void Focus state setter
setOnline (isOnline: boolean) => void Network state setter