public final class

LayoutElementBuilders.ArcAdapter

extends java.lang.Object

implements LayoutElementBuilders.ArcLayoutElement

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.ArcAdapter

Overview

A container that allows a standard LayoutElementBuilders.LayoutElement to be added to an LayoutElementBuilders.Arc.

Summary

Methods
public static LayoutElementBuilders.ArcAdapterfromProto(LayoutElementProto.ArcAdapter proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public LayoutElementBuilders.LayoutElementgetContent()

Gets the element to adapt to an LayoutElementBuilders.Arc.

public FingerprintgetFingerprint()

public TypeBuilders.BoolPropgetRotateContents()

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

public LayoutElementProto.ArcLayoutElementtoArcLayoutElementProto()

public java.lang.StringtoString()

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

Methods

Gets the element to adapt to an LayoutElementBuilders.Arc.

public TypeBuilders.BoolProp getRotateContents()

Gets 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 Fingerprint getFingerprint()

Creates a new wrapper instance from the proto.

public LayoutElementProto.ArcLayoutElement toArcLayoutElementProto()

public java.lang.String toString()