init.onFgCall - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.init.onFgCall (Deprecated)

API ์„ค๋ช…

  • Foreground ํ•จ์ˆ˜ ํ˜ธ์ถœ ๋“ฑ๋ก API
  • init.fgCall ์—์„œ ํ˜ธ์ถœ๋˜๊ธฐ ์œ„ํ•œ Foreground Action์˜ ํ•จ์ˆ˜๋ฅผ Foreground Action์— ๋“ฑ๋กํ•จ

API ๊ตฌ์กฐ

  • function callback(operation,parameters)
  • init.fgCall์„ ํ˜ธ์ถœํ•  ๋•Œ ์„ค์ •ํ•œ ๊ฐ’๋“ค์ด ์ „๋‹ฌ๋จ

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

// callback ๋ฐฉ์‹
gigagenie.init.onFgCall(function (operation, parameters) {
    switch (operation) {
        case 'Greeting':
            console.log("From " + parameters.myname + " Greeting");
            break;
        case 'Good Bye':
            console.log("From " + parameters.myname + " Good Bye");
            break;
        default:
            break;
    }
});