Close directive CloseSucceeded, CloseFailed event 추가 Weather1/2/3/4/5, FullImage directive 추가
1.2
2020.03.03
Duration 추가 Score1/2 directive 추가 ControlFocus, ControlScroll directive 추가 ControlFocusSucceeded, ControlFocusFailed, ControlScrollSucceeded, ControlScrollFailed event 추가 SearchList1/2 directive 추가 Call1/2/3 directive 추가 FullText3 directive 추가
1.3
2020.04.29
Timer directive 추가 Template 에 supportFocusedItemToken, supportVisibleTokenList 필드 추가
1.4
2020.06.22
ButtonObject 에 postback, autoTrigger, closeTemplateAfter, disable 필드 추가 ElementSelected event 에 postback 필드 추가 Dummy directive 추가
1.5
2020.09.02
Template 에 eventType, textInput 필드 추가
1.6
2020.10.16
BadgeObject, UnifiedSearch1 추가
1.7
2021.05.31
StyleGrammarGuide, FloatingBannerObject 추가
SDK Interface
DisplayAgent 사용
Display interface 규격에 따른 디바이스의 동작 제어는 DisplayAgent 가 처리합니다.
Android
iOS
Linux
NuguAndroidClient instance 를 통해 DisplayAgent instance 에 접근할 수 있습니다.
val displayAgent = nuguAndroidClient.displayAgent
AudioPlayer interface 와 Display interface 를 병합해주는 DisplayAggregatorInterface 를 제공합니다.
val displayAggregator = nuguAndroidClient.getDisplay()
NuguClient instance 를 통해 DisplayAgent instance 에 접근할 수 있습니다.
let audioPlayerAgent = nuguClient.audioPlayerAgent
현재 화면에 List Template이 보여지고 있을 때, 포커스된 item을 식별하기 위한 unique identifier focusable이 true인 List Template이 보여지고 있을 때는 반드시 focusedItemToken이 존재해야 함
visibleTokenList
list
N
현재 화면에 List Template이 보여지고 있을 때, 보여지고 있는 item들을 식별하기 위한 unique identifier 목록 List Template이 보여지고 있을 때는 반드시 visibleTokenList이 존재해야 함
Common Objects
Template 에 사용되는 공통 object 의 데이터 구조입니다.
ImageObject
{
"contentDescription": "{{STRING}}",
"sources": [
{
"url": "{{STRING}}",
"size": "{{STRING}}",
"widthPixels": {{LONG}},
"heightPixels": {{LONG}}
}
]
}
parameter
type
mandatory
description
contentDescription
string
N
-
sources
list
Y
리스트로 제공되며 클라이언트에서 화면 크기에 가장 적합한 이미지를 사용해야 함
sources.url
string
Y
-
sources.size
string
N
X_SMALL, SMALL, MEDIUM, LARGE, X_LARGE
sources.widthPixels
long
N
-
sources.heightPixels
long
N
-
size value
Recommended Size (in pixels)
X_SMALL
480 x 320
SMALL
720 x 480
MEDIUM
960 x 640
LARGE
1280 x 800
X_LARGE
1920 x 1080
TextObject
{
"text": "{{STRING}}",
"color": "{{STRING}}",
"style": {}
}
parameter
type
mandatory
description
text
string
Y
Text 중간에 강조 표현을 위한 마크업 사용 가능 스펙 - 볼드 : <b>볼드</b> - 기울림 : <i>기울림</i> - 밑줄 : <u>밑줄</u> - 윗첨자 : <sup>윗첨자</sup> - 아래첨자 : <sub>아래첨자</sub> - 취소선 : <s>취소선</s> - 색상 : <font color="red">빨강</font> 위에 요소외 다른 마크업 사용 시 마크업 요소 사용 불가, 원본 표시
color
string
N
color 형식 (RGB) default 값은 디바이스마다 다름
style
object
N
기본적으로는 상위 스타일(directive 등)을 따름. CSS 속성은 모두 가능하며, 다음의 값들을 가질 수 있다. - text-align : left, center, right - opacity : 0 ~ 1 - display : block, inline, none - margin : 10px - 사용예. { "text-align":"center", "display": "block" }