-
Notifications
You must be signed in to change notification settings - Fork 6
init.startFgAction
ServiceSDK edited this page Jul 5, 2022
·
4 revisions
- Foreground Action 실행 API
- Background에서 실행중인 웹에서 Foreground action을 실행한다.
- function startFgAction(options,callback)
-
options
-
actionCode
: (String, Optional) 실행할 actionCode -
serviceOptions
: (JSONObject, Optional) action 실행시 get parameter로 전달할 옵션
-
-
result_cd
-
200
: 시작 성공 -
404
: 존재하지 않는 actionCode -
405
: Background 로 동작하는 actionCode아님
-
-
extra
- null
// callback 방식
var options = {};
options.actionCode = "startForeground";
gigagenie.init.startFgAction(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("Background Service Started");
} else {
console.log("startFgAction is fail.");
console.log("result_cd: " + extra.result_cd);
}
});
Copyright ⓒ 2017-2023 kt corp. All rights reserved.
- 개요
- 일반사항
- 참고사항
- 통합개발환경
- Appendix
- 기가지니 웹앱 로그 관리 가이드
- API 전체 보기
-
API초기화
- gigagenie.init
- gigagenie.init.changeContainerId
- gigagenie.init.onAppStatusChange
gigagenie.init.startBgActiongigagenie.init.stopBgActiongigagenie.init.checkBgActiongigagenie.init.startFgActiongigagenie.init.stopFgActiongigagenie.init.checkFgActiongigagenie.init.fgCallgigagenie.init.onFgCallgigagenie.init.bgCallgigagenie.init.onBgCall- gigagenie.init.runApp
-
Voice API
- voice.getVoiceText
- voice.sendTTS
- voice.onVoiceCommand
- voice.setKwsVoiceRecv
- voice.onSelectedIndex
- voice.onRequestClose
- voice.svcFinished
- voice.onActionEvent
- voice.stopTTS
- voice.setVoiceFilter
- voice.resetVoiceFilter
- voice.onVoiceFilterMsg
- voice.onRegToneResults
- voice.setVoiceRecogDomain
- voice.onVocDomainTimeout
- Call API
- 데이터 관리
- G-Box 정보 관리 API
-
Media API
- media.onMuteRequest
- media.showSoftKeyboard
- media.onRemoteKeyEvent
- media.startRecordAudio
- media.onVoiceRecordComplete
- media.stopRecordAudio
- media.createChannel
- media.destroyChannel
- media.startWebRTCAudio
- media.stopWebRTCAudio
- media.keepaliveChannel
- media.onChannelEvent
- media.getOTVChannel
- media.setOTVChannel
- media.sendMsgToOTVWebApp
- media.onOTVWebAppMsg
- media.onSoftKeyEvent
- Payment API
- Vision API
- 통계 API
- Admin API