UNPKG

react-native-ble-nitro

Version:

High-performance React Native BLE library built on Nitro Modules - drop-in replacement for react-native-ble-plx

50 lines (49 loc) 1.69 kB
/** * React-native-ble-plx compatibility constants * * Re-exports all constants and types to maintain API compatibility */ export declare const State: { readonly Unknown: "Unknown"; readonly Resetting: "Resetting"; readonly Unsupported: "Unsupported"; readonly Unauthorized: "Unauthorized"; readonly PoweredOff: "PoweredOff"; readonly PoweredOn: "PoweredOn"; }; export declare const LogLevel: { readonly None: "None"; readonly Verbose: "Verbose"; readonly Debug: "Debug"; readonly Info: "Info"; readonly Warning: "Warning"; readonly Error: "Error"; }; export type StateString = typeof State[keyof typeof State]; export type LogLevelString = typeof LogLevel[keyof typeof LogLevel]; export declare const CharacteristicSubscriptionType: { readonly Notification: "notification"; readonly Indication: "indication"; }; export type CharacteristicSubscriptionTypeString = typeof CharacteristicSubscriptionType[keyof typeof CharacteristicSubscriptionType]; export declare const RefreshGattMoment: { readonly OnConnected: "OnConnected"; }; export type RefreshGattMomentString = typeof RefreshGattMoment[keyof typeof RefreshGattMoment]; export declare const ScanMode: { readonly Opportunistic: -1; readonly LowPower: 0; readonly Balanced: 1; readonly LowLatency: 2; }; export declare const ScanCallbackType: { readonly AllMatches: 1; readonly FirstMatch: 2; readonly MatchLost: 4; }; export declare const ConnectionPriority: { readonly Balanced: 0; readonly High: 1; readonly LowPower: 2; }; export { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types';