@nativescript-community/nordic-dfu
Version:
A NativeScript plugin for performing Nordic Bluetooth device firmware updates.
31 lines • 682 B
JavaScript
import { DFUControllerCommon } from './common';
export class DFUController extends DFUControllerCommon {
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