lockscreen


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

createPincode

잠금번호를 생성한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
없음없음
  

Example

hone.channel.execute('lockscreen', 'createPincode', [],
   function () {
        alert("create pincode");
    }, function (e) {
        alert(JSON.stringify(e));
    }
);

show

잠금화면을 출력한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
없음없음
  

Example

hone.channel.execute('lockscreen', 'show', [],
   function () {
        alert("show pincode");
    }, function (e) {
        alert(JSON.stringify(e));
    }
);

changePincode

잠금번호를 변경한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
없음없음
  

Example

hone.channel.execute('lockscreen', 'changePincode', [],
   function () {
        alert("change pincode");
    }, function (e) {
        alert(JSON.stringify(e));
    }
);

hasPincode

잠금번호 생성여부를 확인한다.

successCallback

필드설명
result있으면 1
없으면 0
  

errorCallback

필드설명
없음없음
  

Example

hone.channel.execute('lockscreen', 'hasPincode', [],
   function (result) {
        alert(JSON.stringify(result));
    }, function (e) {
        alert(JSON.stringify(e));
    }
);