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.");
    }
});