public final class

ModifiersBuilders.Background

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ModifiersBuilders.Background

Overview

A modifier to apply a background to an element.

Summary

Methods
public static ModifiersBuilders.BackgroundfromProto(ModifiersProto.Background proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ColorBuilders.ColorPropgetColor()

Gets the background color for this element.

public ModifiersBuilders.CornergetCorner()

Gets the corner properties of this element.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public ModifiersProto.BackgroundtoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public ColorBuilders.ColorProp getColor()

Gets the background color for this element. If not defined, defaults to being transparent.

While this field is statically accessible from 1.0, it's only bindable since version 1.2 and renderers supporting version 1.2 will use the dynamic value (if set).

public ModifiersBuilders.Corner getCorner()

Gets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static ModifiersBuilders.Background fromProto(ModifiersProto.Background proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ModifiersProto.Background toProto()

Returns the internal proto instance.

public java.lang.String toString()