appinfo.getScreenLimit - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appinfo.getScreenLimit
API ์ค๋ช
- Screen ์ ํ ์กฐํ API
- Screen ์ด์ฉ ์ ํ ์ํ๋ฅผ ์กฐํํจ
API ๊ตฌ์กฐ
- function getScreenLimit(options,callback)
options
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.");
}
});