public final class

DeviceParametersBuilders.Capabilities

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.DeviceParametersBuilders.Capabilities

Overview

DeviceParametersBuilders.Capabilities describing the features that the renderer supports. These features are not necessarily tied to a specific schema version. LayoutElementBuilders.Layout providers can use these information to conditionally generate different layouts based on the presence/value of a feature.

Summary

Methods
public static DeviceParametersBuilders.CapabilitiesfromProto(DeviceParametersProto.Capabilities proto)

Creates a new wrapper instance from the proto.

public longgetMinimumFreshnessLimitMillis()

Gets current minimum freshness limit in milliseconds for a layout.

public DeviceParametersProto.CapabilitiestoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public long getMinimumFreshnessLimitMillis()

Gets current minimum freshness limit in milliseconds for a layout. This can change based on various factors. Any freshness request lower than the current limit will be replaced by that limit. A value of 0 here signifies that the minimum freshness limit in unknown.

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()