init.stopBgAction - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.init.stopBgAction (Deprecated)

API ์„ค๋ช…

  • Background Action ์ค‘์ง€ API
  • Full/Overlay ActionCode์—์„œ ์‹คํ–‰์ค‘์ธ ์›น์—์„œ ์‹คํ–‰์ค‘์ธ Background Action์„ ์ค‘์ง€

API ๊ตฌ์กฐ

  • function stopBgAction(options,callback)
  • options
    • null
  • result_cd
    • 200: ์ค‘์ง€ ์„ฑ๊ณต
    • 500: ์‹œ์Šคํ…œ ์—๋Ÿฌ
  • extra
    • null

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

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