barcode


Contents

Barcode는 2.6.4 버전 이상 부터 제공되며 해당 라이브러리를 추가하여 사용해야 된다.

show

바코드 리더 화면을 출력한다.

 

options

필드설명
flash바코드 리더 화면 출력 시 후레쉬 설정 값
beep바코드를 인식 하였을 때 소리 설정 값
vibrator바코드를 인식 하였을 때 진동 설정 값
  

successCallback

필드설명
result바코드 인식 결과값
  

errorCallback

필드설명
없음없음
  

Example

var options = {
   'flash': false,
   'beep': false,
   'vibrator': false
};

hone.channel.execute('barcode', 'show', [options],
   function (result) {
       // success callback
       console.log(JSON.stringify(result));
    },
   function (e) {
       // error callback
       alert(JSON.stringify(e));
    }
);

 

Result

{"result":"http://hone.hanwha.co.kr/hsp"}