TogglesTrait.Toggle

class TogglesTrait.Toggle


A toggle that is available on the device.

Summary

Public constructors

Creates the Toggle class.

Public properties

String

Internal name of the toggle, which will be used in commands and states.

List<TogglesTrait.ToggleSynonyms>

Synonyms of the toggle in each supported language.

Public constructors

Toggle

Toggle(
    name: String = "",
    synonyms: List<TogglesTrait.ToggleSynonyms> = emptyList()
)

Creates the Toggle class.

Public properties

name

val nameString

Internal name of the toggle, which will be used in commands and states. This can be non-user-friendly, and will be shared across all languages.

synonyms

val synonymsList<TogglesTrait.ToggleSynonyms>

Synonyms of the toggle in each supported language.