Instruction types delivered as { type: 'instruction' } on a JourneyEvent. Read them from cordova.tsido.INSTRUCTIONS.
| Member | Value |
|---|---|
PIN_CODE_REGISTRATION_COMMIT | "pinCodeRegistrationCommit" |
PIN_CODE_DELETION_COMMIT | "pinCodeDeletionCommit" |
function onJourneyEvent(event) {
if (event.type !== 'instruction') return;
if (event.instruction.type === cordova.tsido.INSTRUCTIONS.PIN_CODE_REGISTRATION_COMMIT) {
console.log(event.instruction.stepId, event.instruction.data);
}
}