onBarcodeScan method name change to make method behaviour more visible