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
setTitle
SettingBuilder setTitle(title: string)

Set the dialog's title

Parameters
title The dialog's title
Return
SettingBuilder This SettingBuilder instance
setPositiveButton
SettingBuilder setPositiveButton(text: string)

Set the dialog's positive button text

Parameters
text The dialog's positive button text
Return
SettingBuilder This SettingBuilder instance
setNegativeButton
SettingBuilder setNegativeButton(text: string)

Set the dialog's negative button text

Parameters
text The dialog's negative button text
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

© 2022 - Macrorify by KoK-CODE