EdgeContentLayout.Builder

Added in 1.1.0
Deprecated in 1.2.0

class EdgeContentLayout.Builder : LayoutElementBuilders.LayoutElement.Builder


Builder class for EdgeContentLayout.

Summary

Public constructors

Creates a builder for the EdgeContentLayoutt.

Public functions

EdgeContentLayout

Constructs and returns EdgeContentLayout with the provided content and look.

EdgeContentLayout.Builder

Sets the additional content to this layout, inside of the screen.

EdgeContentLayout.Builder

Sets the content to be around the edges.

EdgeContentLayout.Builder

Sets the content in the primary label slot which will be above the main content.

EdgeContentLayout.Builder

Sets the content in the secondary label slot which will be below the main content.

Public constructors

Builder

Added in 1.1.0
Deprecated in 1.2.0
Builder(deviceParameters: DeviceParametersBuilders.DeviceParameters)

Creates a builder for the EdgeContentLayoutt. Custom content inside of it can later be set with (setContent.

Public functions

build

Added in 1.1.0
Deprecated in 1.2.0
fun build(): EdgeContentLayout

Constructs and returns EdgeContentLayout with the provided content and look.

setContent

Added in 1.1.0
Deprecated in 1.2.0
fun setContent(content: LayoutElementBuilders.LayoutElement): EdgeContentLayout.Builder

Sets the additional content to this layout, inside of the screen.

setEdgeContent

Added in 1.1.0
Deprecated in 1.2.0
fun setEdgeContent(edgeContent: LayoutElementBuilders.LayoutElement): EdgeContentLayout.Builder

Sets the content to be around the edges. This can be CircularProgressIndicator.

setPrimaryLabelTextContent

Added in 1.1.0
Deprecated in 1.2.0
fun setPrimaryLabelTextContent(
    primaryLabelText: LayoutElementBuilders.LayoutElement
): EdgeContentLayout.Builder

Sets the content in the primary label slot which will be above the main content.

setSecondaryLabelTextContent

Added in 1.1.0
Deprecated in 1.2.0
fun setSecondaryLabelTextContent(
    secondaryLabelText: LayoutElementBuilders.LayoutElement
): EdgeContentLayout.Builder

Sets the content in the secondary label slot which will be below the main content. It is highly recommended to have primary label set when having secondary label.