Mobile Locker JavaScript SDK
    Preparing search index...

    Variable networkConst

    network: { getStatus(): Promise<NetworkStatus> } = ...

    Type Declaration

    • getStatus: function
      • Get the current network connectivity status.

        In the iOS app, returns accurate connection type from the native layer. In the browser, falls back to navigator.onLine — note that this may return true on captive portals even without real internet access.

        Returns Promise<NetworkStatus>

        A NetworkStatus object with connected and type.

        const { connected, type } = await mobilelocker.network.getStatus()
        if (!connected) showOfflineBanner()