How can I get the current sequence to be able to store it and update it as it changes?.
Currently there are these two listeners, but neither covers that need.
registerSequenceStepEvent = () => {
if (this.sequenceStepListener) {
this.sequenceStepListener.remove();
}
this.sequenceStepListener = DeviceEventEmitter.addListener(
'onShowSequenceStepEvent',
e => {
console.log('onShowSequenceStepEvent', e);
},
);
};
registerFinishSequenceEvent = () => {
if (this.finishSequenceListener) {
this.finishSequenceListener.remove();
}
this.finishSequenceListener = DeviceEventEmitter.addListener(
'onFinishSequenceEvent',
e => {
console.log('onShowSequenceStepEvent', e);
},
);
};
`
How can I get the current sequence to be able to store it and update it as it changes?.
Currently there are these two listeners, but neither covers that need.
registerSequenceStepEvent = () => {
if (this.sequenceStepListener) {
this.sequenceStepListener.remove();
}
this.sequenceStepListener = DeviceEventEmitter.addListener(
'onShowSequenceStepEvent',
e => {
console.log('onShowSequenceStepEvent', e);
},
);
};
registerFinishSequenceEvent = () => {
if (this.finishSequenceListener) {
this.finishSequenceListener.remove();
}
this.finishSequenceListener = DeviceEventEmitter.addListener(
'onFinishSequenceEvent',
e => {
console.log('onShowSequenceStepEvent', e);
},
);
};
`