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