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 aids in avoiding duplicated dialog logic.

For more information about dialog macros, see Dialog Macros.

You can define one or more template-macro-def keys within a *.dialog.bxb file. These files should be located in the appropriate locale-specific resources folder.

Example

// resources/en/dialog-macros/my-template.dialog.bxb
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