Bixby Developer Center

Guides

constant

optionalmultiple allowed

Allows making properties into an enumeration.

Example

structure-enum (CurrencyType) {
property (currencyCode) {
type (CurrencyCode)
}
property (prefixSymbol) {
type (PrefixSymbol)
}
constant: CurrencyType {
prefixSymbol: ($)
currencyCode: (USD)
}
constant: CurrencyType {
prefixSymbol: ()
currencyCode: (EUR)
}
// ... additional currency types ...
}