Documentation

API Referenceinterface

interface ViewBuilder

An interface for objects that build pre-configured view instances.

interface ViewBuilder<TView extends View = View>;

Description

Classes that extend this type (such as UIButton.ButtonBuilder) typically provide a fluent interface for creating and configuring views. They use a ViewBuilder.Initializer to configure the initialization logic, including property setting, binding, event handling, and initialization callbacks (e.g. for adding content to container views), and expose this functionality using methods on the builder class.

Type members

Instance members

Related