public final class

LayoutElementBuilders.ExtensionLayoutElement

extends java.lang.Object

implements LayoutElementBuilders.LayoutElement

 java.lang.Object

↳androidx.wear.protolayout.LayoutElementBuilders.ExtensionLayoutElement

Overview

A layout element which can be defined by a renderer extension. The payload in this message will be passed verbatim to any registered renderer extension in the renderer. It is then expected that the extension can parse this message, and emit the relevant element.

If a renderer extension is not installed, this resource will not render any element, although the specified space will still be occupied. If the payload cannot be parsed by the renderer extension, then still nothing should be rendered, although this behaviour is defined by the renderer extension.

Summary

Methods
public static LayoutElementBuilders.ExtensionLayoutElementfromProto(LayoutElementProto.ExtensionLayoutElement proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public java.lang.StringgetExtensionId()

Gets the ID of the renderer extension that should be used for rendering this layout element.

public FingerprintgetFingerprint()

public DimensionBuilders.ExtensionDimensiongetHeight()

Gets the height of this element.

public byte[]getPayload()

Gets the content of the renderer extension element.

public DimensionBuilders.ExtensionDimensiongetWidth()

Gets the width of this element.

public LayoutElementProto.LayoutElementtoLayoutElementProto()

public java.lang.StringtoString()

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

Methods

public byte[] getPayload()

Gets the content of the renderer extension element. This can be any data; it is expected that the renderer extension knows how to parse this field.

public java.lang.String getExtensionId()

Gets the ID of the renderer extension that should be used for rendering this layout element.

Gets the width of this element.

Gets the height of this element.

public Fingerprint getFingerprint()

Creates a new wrapper instance from the proto.

public LayoutElementProto.LayoutElement toLayoutElementProto()

public java.lang.String toString()