public final class

ModifiersBuilders.Modifiers

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.ModifiersBuilders.Modifiers

Overview

ModifiersBuilders.Modifiers for an element. These may change the way they are drawn (e.g. ModifiersBuilders.Padding or ModifiersBuilders.Background), or change their behaviour (e.g. ModifiersBuilders.Clickable, or ModifiersBuilders.Semantics).

Summary

Methods
public static ModifiersBuilders.ModifiersfromProto(ModifiersProto.Modifiers proto)

Creates a new wrapper instance from the proto.

public static ModifiersBuilders.ModifiersfromProto(ModifiersProto.Modifiers proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ModifiersBuilders.BackgroundgetBackground()

Gets the background (with optional corner radius) of the modified element.

public ModifiersBuilders.BordergetBorder()

Gets the border of the modified element.

public ModifiersBuilders.ClickablegetClickable()

Gets the clickable property of the modified element.

public FingerprintgetFingerprint()

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

public ModifiersBuilders.ElementMetadatagetMetadata()

Gets metadata about an element.

public ModifiersBuilders.PaddinggetPadding()

Gets the padding of the modified element.

public ModifiersBuilders.SemanticsgetSemantics()

Gets the semantics of the modified element.

public ModifiersProto.ModifierstoProto()

Returns the internal proto instance.

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

Methods

public ModifiersBuilders.Clickable getClickable()

Gets the clickable property of the modified element. It allows its wrapped element to have actions associated with it, which will be executed when the element is tapped. Intended for testing purposes only.

public ModifiersBuilders.Semantics getSemantics()

Gets the semantics of the modified element. This can be used to add metadata to the modified element (eg. screen reader content descriptions). Intended for testing purposes only.

public ModifiersBuilders.Padding getPadding()

Gets the padding of the modified element. Intended for testing purposes only.

public ModifiersBuilders.Border getBorder()

Gets the border of the modified element. Intended for testing purposes only.

public ModifiersBuilders.Background getBackground()

Gets the background (with optional corner radius) of the modified element. Intended for testing purposes only.

Gets metadata about an element. For use by libraries building higher-level components only. This can be used to track component metadata.

public Fingerprint getFingerprint()

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

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

Creates a new wrapper instance from the proto.

Creates a new wrapper instance from the proto. Intended for testing purposes only. An object created using this method can't be added to any other wrapper.

public ModifiersProto.Modifiers toProto()

Returns the internal proto instance.