SettingBuilder

Builder for the Setting Dialog

Constructor

Instance of this class can only be created via builder() from Setting

Methods
add
SettingBuilder add(key: string, view: View)

Add a View and map its value to the key

Parameters
key The key
view One of the supported View
Return
SettingBuilder This SettingBuilder instance
group
SettingBuilder group()

Start a new group. Normally all View stack vertically. View in a group will stack horizontally. Group does not nest so calling this method repeatedly does nothing

Return
SettingBuilder This SettingBuilder instance
groupEnd
SettingBuilder groupEnd()

End grouping. View will stack vertically after this call

Return
SettingBuilder This SettingBuilder instance
build
Dialog build()

Build the Setting Dialog. You can then show() or set it to Setting.setDialog()

Return
Dialog The Dialog

© 2021 - Macrorify by KoK-CODE