init.checkFgAction - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.init.checkFgAction (Deprecated)

API ์„ค๋ช…

  • Foreground Action ํ™•์ธ API
  • Background ์—์„œ ์‹คํ–‰์ค‘์ธ ์›น์—์„œ Foreground action์„ ์กฐํšŒ

API ๊ตฌ์กฐ

  • function checkFgAction(options,callback)
  • options
    • null
  • result_cd
    • 200: ์‹œ์ž‘ ์„ฑ๊ณต
    • 404: Foreground์—์„œ ์‹คํ–‰ ์ค‘์ธ ์„œ๋น„์Šค ์—†์Œ
    • 500: ์‹œ์Šคํ…œ ์—๋Ÿฌ
  • extra
    • actionCode: Foreground์—์„œ ์‹คํ–‰ ์ค‘์ธ actionCode

์‚ฌ์šฉ ์˜ˆ์‹œ

// callback ๋ฐฉ์‹
var options = {};
gigagenie.init.checkFgAction(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("actionCode: " + extra.actionCode);
    } else {
        console.log("checkFgAction is fail.");
        console.log("result_cd: " + extra.result_cd);
    }
});