Uh oh! We couldn’t find any match.

Please try other search keywords.

Bixby Developer Center

Guides

template-macro-def

requiredvalue required

Define a pattern to use as a dialog macro, which aid in avoiding duplicate dialog logic.

For more information about dialog macros, refer to Dialog Macros in Fundamentals documentation.

Example

template-macro-def (id) {
params {
param (x) {
type (Boolean)
}
param (y) {
type (Text)
}
}

content {
if (x) {
template ("#{y}")
} else {
template ("something else")
}
}
}

Child Keys

content
required
Specify the content of a dialog macro
params
optional
Specify the parameters to pass in as part of a dialog macro definition