Skip to content

INSTRUCTIONS

Instruction types delivered as { type: 'instruction' } on a JourneyEvent. Read them from cordova.tsido.INSTRUCTIONS.

Members

MemberValue
PIN_CODE_REGISTRATION_COMMIT"pinCodeRegistrationCommit"
PIN_CODE_DELETION_COMMIT"pinCodeDeletionCommit"

Usage

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);
  }
}