LayoutElementBuilders.ArcAdapter.Builder


class LayoutElementBuilders.ArcAdapter.Builder


Builder for ArcAdapter.

Summary

Public constructors

Creates an instance of Builder.

Public functions

LayoutElementBuilders.ArcAdapter

Builds an instance from accumulated values.

LayoutElementBuilders.ArcAdapter.Builder

Sets the element to adapt to an Arc.

LayoutElementBuilders.ArcAdapter.Builder
setRotateContents(rotateContents: Boolean)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not.

LayoutElementBuilders.ArcAdapter.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setRotateContents(rotateContents: TypeBuilders.BoolProp)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): LayoutElementBuilders.ArcAdapter

Builds an instance from accumulated values.

setContent

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setContent(content: LayoutElementBuilders.LayoutElement): LayoutElementBuilders.ArcAdapter.Builder

Sets the element to adapt to an Arc.

setRotateContents

Added in 1.0.0
fun setRotateContents(rotateContents: Boolean): LayoutElementBuilders.ArcAdapter.Builder

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an Image has been added to the arc, and ends up at the 3 o clock position. If rotate_contents = true, the image will be placed at the 3 o clock position, and will be rotated clockwise through 90 degrees. If rotate_contents = false, the image will be placed at the 3 o clock position, but itself will not be rotated. If not defined, defaults to false.

setRotateContents

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRotateContents(rotateContents: TypeBuilders.BoolProp): LayoutElementBuilders.ArcAdapter.Builder

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an Image has been added to the arc, and ends up at the 3 o clock position. If rotate_contents = true, the image will be placed at the 3 o clock position, and will be rotated clockwise through 90 degrees. If rotate_contents = false, the image will be placed at the 3 o clock position, but itself will not be rotated. If not defined, defaults to false.

Note that this field only supports static values.