UNPKG

@nativescript-community/nordic-dfu

Version:

A NativeScript plugin for performing Nordic Bluetooth device firmware updates.

20 lines (19 loc) 934 B
import { DFUInitiatorCommon, DfuState } from './common'; import { DfuServiceController } from './serviceController'; export declare class DFUInitiator extends DFUInitiatorCommon { private readonly mNative; private readonly mDelegate; private readonly mProgressDelegate; constructor(peripheralUUID: string); setAndroidDeviceName(name: string): DFUInitiator; setAndroidDisableNotification(val: boolean): DFUInitiator; setAndroidForeground(val: boolean): DFUInitiator; setAndroidKeepBond(val: boolean): DFUInitiator; setForceDfu(val: boolean): DFUInitiator; setForceScanningForNewAddressInLegacyDfu(val: boolean): DFUInitiator; setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(val: boolean): DFUInitiator; setPacketReceiptNotificationParameter(val: number): DFUInitiator; disableResume(): DFUInitiator; start(filePath: string): DfuServiceController; } export { DfuState };