Builder for the Setting Dialog
Instance of this class can only be created via builder() from Setting
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 |
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 |
SettingBuilder groupEnd()
End grouping. View will stack vertically after this call
Return | |
SettingBuilder | This SettingBuilder instance |
SettingBuilder setTitle(title: string)
Set the dialog's title
Parameters | |
title | The dialog's title |
Return | |
SettingBuilder | This SettingBuilder instance |
SettingBuilder setPositiveButton(text: string)
Set the dialog's positive button text
Parameters | |
text | The dialog's positive button text |
Return | |
SettingBuilder | This SettingBuilder instance |
SettingBuilder setNegativeButton(text: string)
Set the dialog's negative button text
Parameters | |
text | The dialog's negative button text |
Return | |
SettingBuilder | This SettingBuilder instance |
Dialog build()
Build the Setting Dialog. You can then show() or set it to Setting.setDialog()
Return | |
Dialog | The Dialog |
© 2024 - Macrorify by KoK-CODE