init.checkBgAction - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.init.checkBgAction (Deprecated)
API ์ค๋ช
- Background Action ํ์ธ API
- Full/Overlay ActionCode์์ ํ์ฌ ์คํ ์ค์ธ Background Action์ ์กฐํ
API ๊ตฌ์กฐ
- function checkBgAction(options,callback)
options
result_cd
200
: ์กฐํ ์ฑ๊ณต
404
: Background์์ ์คํ์ค์ธ ์๋น์ค ์์
500
: ์์คํ
์๋ฌ
extra
actionCode
: Background์์ ์คํ ์ค์ธ actionCode
์ฌ์ฉ ์์
// callback ๋ฐฉ์
var options = {};
gigagenie.init.checkBgAction(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("actionCode: " + extra.actionCode);
} else {
console.log("result_cd: " + extra.result_cd);
}
});