UNPKG

@nativescript-community/nordic-dfu

Version:

A NativeScript plugin for performing Nordic Bluetooth device firmware updates.

35 lines 771 B
import { DfuServiceControllerCommon } from './common'; export class DfuServiceController extends DfuServiceControllerCommon { constructor(native) { super(); this.mNative = native; } pause() { if (this.mNative) { this.mNative.pause(); } } resume() { if (this.mNative) { this.mNative.resume(); } } abort() { if (this.mNative) { this.mNative.abort(); } } isPaused() { if (this.mNative) { return this.mNative.paused; } return false; } isAborted() { if (this.mNative) { return this.mNative.aborted; } return false; } } //# sourceMappingURL=index.ios.js.map