lockscreen


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

createPincode

잠금번호를 생성한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
code에러코드
message에러메세지
  

Example

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

show

잠금화면을 출력한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
code에러코드
message에러메세지
  

Example

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

changePincode

잠금번호를 변경한다.

successCallback

필드설명
없음없음
  

errorCallback

필드설명
code에러코드
message에러메세지
  

Example

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

hasPincode

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

successCallback

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

errorCallback

필드설명
code에러코드
message에러메세지
  

Example

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

Result

1

Error Code

CodeCauseComment
E11000파라메터 값이 잘못되어 있을 경우 
E11001전달된 액션 값이 알 수 없는 액션일 경우 
E11050실행 중 오류가 발생 되었을 경우 
E11051비밀번호가 일치하지 않는 경우 
E11099알 수없는 오류가 발생 되었을 경우