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