Connectivity API
The Connectivity API enables POS UI extensions to retrieve device connectivity information, such as whether the device has an internet connection.
ConnectivityApiContent
Anchor link to section titled "ConnectivityApiContent"Name | Type | Description |
---|---|---|
subscribable | ConnectivityState |
The connectivity status at the time the page is loaded, and a callback to subscribe to value changes. Currently supports only one subscription. You can utilize makeStatefulSubscribable on a RemoteSubscribable to implement multiple subscriptions. Using makeStatefulSubscribable or the corresponding hooks represents a subscription. |
ConnectivityState
Anchor link to section titled "ConnectivityState"Name | Type | Description | Options |
---|---|---|---|
internetConnected | string |
Whether the device is connected to the internet | Connected or Disconnected |