useNearbyDeviceOffer
No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.
Kind: React hook
Package: @ovok/native
Import
import { useNearbyDeviceOffer } from '@ovok/native/bt-management';
TypeScript signatures
({ storage, storageKey, declinedStorageKey, enabled, onPaired, onError, }: UseNearbyDeviceOfferOptions): { device?: RuntimeDevice; status: NearbyDeviceOfferStatus; error?: BluetoothError; accept: () => Promise<void>; decline: () => Promise<void>; undecline: (deviceId: string) => Promise<void>; later: () => void; }
| Parameter | Type | Details |
|---|---|---|
__0 | UseNearbyDeviceOfferOptions | — |
Returns: { device?: RuntimeDevice; status: NearbyDeviceOfferStatus; error?: BluetoothError; accept: () => Promise<void>; decline: () => Promise<void>; undecline: (deviceId: string) => Promise<void>; later: () => void; }.
Learn the workflow
Continue with Bluetooth for the workflow context and examples.