appinfo.getScreenLimit - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.appinfo.getScreenLimit

API 설명

  • Screen 제한 조회 API
  • Screen 이용 제한 상태를 조회함

API 구조

  • function getScreenLimit(options,callback)
  • options
    • null
  • result_cd
    • 200: 성공
    • 500: 시스템 Error
  • extra
    • limit: (Boolean) true일 경우 Screen 이용 불가 상태(GBox가 대기 모드이거나 LTE 단말의 경우 true를 전달함)

사용 예시

// callback 방식
var options = {};
gigagenie.appinfo.getScreenLimit(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200 && extra.limit == false) {
        console.log("Display is avaliable");
    } else {
        console.log("getDisplayAvailable is fail.");
    }
});