UNPKG

react-native-bluetooth-state-manager

Version:

Manage the bluetooth state of your device

15 lines 651 B
import { type HybridObject } from 'react-native-nitro-modules'; export type BluetoothState = 'PoweredOn' | 'PoweredOff' | 'Unauthorized' | 'Unsupported' | 'Resetting' | 'Unknown'; export interface BluetoothStateManager extends HybridObject<{ ios: 'swift'; android: 'kotlin'; }> { getState(): Promise<BluetoothState>; getStateSync(): BluetoothState; addListener(callback: (state: BluetoothState) => void): string; removeListener(callbackRef: string): void; openSettings(): Promise<void>; requestToEnable(): Promise<void>; requestToDisable(): Promise<void>; } //# sourceMappingURL=BluetoothStateManager.nitro.d.ts.map