Skip to main content

FakeBleManager

A deterministic BLE manager for hook and scan integration tests. No hardware is used.

Kind: Interface
Package: @ovok/native

Import​

import { FakeBleManager } from '@ovok/native/bt-management';

TypeScript shape​

interface FakeBleManager {
manager: BleManager;
createDevice: (options: FakeBleDeviceOptions) => FakeBleDevice;
emitDevice: (device: Device) => void;
emitError: (error: unknown) => void;
setState: (state: State) => void;
getScannedServiceUUIDs: () => readonly string[] | null;
stopDeviceScan: () => void;
}

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
managerBleManager—
createDevice(options: FakeBleDeviceOptions): FakeBleDevice—
emitDevice(device: Device): void—
emitError(error: unknown): void—
setState(state: State): void—
getScannedServiceUUIDs(): readonly string[] | null—
stopDeviceScan(): void—

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.