init.stopFgAction - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.init.stopFgAction (Deprecated)

API ์„ค๋ช…

  • Foreground Action ์ค‘์ง€ API
  • Background์—์„œ ์‹คํ–‰ ์ค‘์ธ ์›น์—์„œ Foreground action์„ ์ค‘์ง€

API ๊ตฌ์กฐ

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

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

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