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
    • null
  • 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);
    }
});