Skip to main content

DeviceConnectionEvent

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Interface
Package: @ovok/native

Import​

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

TypeScript shape​

interface DeviceConnectionEvent {
deviceData: DeviceData;
kind: DeviceConnectionEventKind;
pairingCodeRequired?: boolean;
progress?: {
current: number;
total?: number;
};
batteryLevel?: number;
clockAt?: Date;
phoneUtcOffsetMinutes?: number;
}

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

Public members​

MemberTypeDetails
deviceDataDeviceData—
kindDeviceConnectionEventKind—
pairingCodeRequiredbooleanOptional. True when the platform is waiting for the user to confirm or enter a pairing code.
progress{ current: number; total?: number; }Optional. Progress for a history transfer when the protocol exposes record counts.
batteryLevelnumberOptional. Battery percentage when the device exposes the standard Battery Service.
clockAtDateOptional. Local time written to a device clock, when the protocol reports an acknowledgement.
phoneUtcOffsetMinutesnumberOptional. Phone's UTC offset in minutes east of UTC at the clock write.

Learn the workflow​

Continue with Bluetooth for the workflow context and examples.

Source​

View the declaration in the SDK source.