@capgo/capacitor-uwb
Ultra-Wideband ranging for peer distance and direction on iOS Nearby Interaction and Android Jetpack UWB
Overview
Section titled “Overview”Ultra-Wideband ranging for peer distance and direction on iOS Nearby Interaction and Android Jetpack UWB
Start with isAvailable() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | Partial | See getting started |
Core Capabilities
Section titled “Core Capabilities”isAvailable- Check whether UWB is supported and currently available.getDiscoveryToken- Get the local Nearby Interaction discovery token on iOS.startPeerSession- Start an iOS peer ranging session.startControllerSession- Start an Android controller session and return shareable parameters.startControleeSession- Start an Android controlee session from controller parameters.stopSession- Stop the active ranging session.
Public API
Section titled “Public API”| Method | Description |
|---|---|
isAvailable | Check whether UWB is supported and currently available on the device. |
getDiscoveryToken | Get the local Nearby Interaction discovery token on iOS. |
startPeerSession | Start a Nearby Interaction peer session on iOS. |
startControllerSession | Start an Android UWB controller session and return shareable parameters. |
startControleeSession | Start an Android UWB controlee session with parameters from the controller. |
stopSession | Stop the active UWB ranging session. |
addListener | Listen for rangingUpdate and sessionStateChanged events. |
getPluginVersion | Get the current native plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-uwb.