public final class

LayoutElementBuilders.ArcAdapter.Builder

extends java.lang.Object

implements LayoutElementBuilders.ArcLayoutElement.Builder

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.ArcAdapter.Builder

Overview

Builder for LayoutElementBuilders.ArcAdapter.

Summary

Constructors
publicBuilder()

Methods
public LayoutElementBuilders.ArcAdapterbuild()

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()

Methods

Sets the element to adapt to an LayoutElementBuilders.Arc.

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.

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.