@nativescript-community/nordic-dfu
Version:
A NativeScript plugin for performing Nordic Bluetooth device firmware updates.
19 lines (18 loc) • 902 B
TypeScript
import { DfuState, DFUInitiatorCommon } from './common';
import { DfuServiceController } from './serviceController';
export declare class DFUInitiator extends DFUInitiatorCommon {
private readonly mNative;
private readonly mProgressListener;
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 };