with

fun with(vararg options: Option)

Add multiple options.

Parameters

options

The Option arguments to be added.


fun with(options: MutableList<Option>)

Add multiple options as a MutableList

Parameters

options

The Option arguments to be added.


fun with(option: Option)

Add an option.

Parameters

option

Instance of Option.


fun with(menu: Menu)

Add MenuItems from a Menu as options.

Parameters

menu

Instance of Menu.