Kvaser CanKing GUI Extensions SDK v7.6.1
Kvaser CanKing GUI Extensions SDK / hooks / useOnlineStatusSync
Function: useOnlineStatusSync()
useOnlineStatusSync(
parentIsInitialized,id,onGoingOnline,onGoingOffline):boolean
Custom hook to synchronize session state with online/offline status changes.
Parameters
parentIsInitialized
boolean
Whether the parent component is initialized.
id
number
The unique id of the view.
onGoingOnline
Callback function to handle going online.
onGoingOffline
Callback function to handle going offline.
Returns
boolean
The current online status.