public final class

LayoutElementBuilders.ArcAdapter.Builder

extends java.lang.Object

implements LayoutElementBuilders.ArcLayoutElement.Builder

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.ArcAdapter.Builder

Overview

Builder for LayoutElementBuilders.ArcAdapter.

Summary

Constructors
publicBuilder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods
public LayoutElementBuilders.ArcAdapterbuild()

Builds an instance from accumulated values.

public LayoutElementBuilders.ArcAdapter.BuildersetContent(LayoutElementBuilders.LayoutElement content)

Sets the element to adapt to an LayoutElementBuilders.Arc.

public LayoutElementBuilders.ArcAdapter.BuildersetRotateContents(boolean rotateContents)

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

public LayoutElementBuilders.ArcAdapter.BuildersetRotateContents(TypeBuilders.BoolProp rotateContents)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an instance of LayoutElementBuilders.FontWeightProp.Builder.

Methods

public LayoutElementBuilders.ArcAdapter.Builder setRotateContents(TypeBuilders.BoolProp rotateContents)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an LayoutElementBuilders.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.

public LayoutElementBuilders.ArcAdapter.Builder setRotateContents(boolean rotateContents)

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an LayoutElementBuilders.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.

Sets the element to adapt to an LayoutElementBuilders.Arc.

Builds an instance from accumulated values.