Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Function useOnlineStatusSync

    • 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: OnGoingOnlineCallback

        Callback function to handle going online.

      • onGoingOffline: OnGoingOfflineCallback

        Callback function to handle going offline.

      Returns boolean

      The current online status.