create

open fun create(getInterfaceFunc: Supplier<Optional<Widget>>): WidgetAddress

Creates a widget address using the specified supplier

Return

a new widget address

Parameters

getInterfaceFunc

the interface supplier

See also


open fun create(masterInterfaceFilter: Predicate<Widget>): WidgetAddress

Creates a widget address by searching all widgets with the specified predicate. This is not recommended. You should provide a root widget to search for performance reasons (such as create.

Return

a new widget address

Parameters

masterInterfaceFilter

the widget predicate


open fun create(rootIndex: Int, componentFilter: Predicate<Widget>): WidgetAddress

Creates a widget address by searching all widgets in the specified root index with the specified predicate.

Return

a new widget address

Parameters

rootIndex

the widget root index to search under

componentFilter

the widget predicate