@nativescript-community/nordic-dfu
Version:
A NativeScript plugin for performing Nordic Bluetooth device firmware updates.
35 lines • 783 B
JavaScript
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.isPaused();
}
return false;
}
isAborted() {
if (this.mNative) {
return this.mNative.isAborted();
}
return false;
}
}
//# sourceMappingURL=index.android.js.map