Skip to content

@capgo/capacitor-uwb

Ultra-Wideband ranging for peer distance and direction on iOS Nearby Interaction and Android Jetpack UWB

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.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebPartialSee getting started
  • 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.
MethodDescription
isAvailableCheck whether UWB is supported and currently available on the device.
getDiscoveryTokenGet the local Nearby Interaction discovery token on iOS.
startPeerSessionStart a Nearby Interaction peer session on iOS.
startControllerSessionStart an Android UWB controller session and return shareable parameters.
startControleeSessionStart an Android UWB controlee session with parameters from the controller.
stopSessionStop the active UWB ranging session.
addListenerListen for rangingUpdate and sessionStateChanged events.
getPluginVersionGet the current native plugin version.

This reference is synced from src/definitions.ts in capacitor-uwb.