public final class

DeviceParametersBuilders.Capabilities.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.DeviceParametersBuilders.Capabilities.Builder

Overview

Builder for DeviceParametersBuilders.Capabilities

Summary

Constructors
publicBuilder()

Creates an instance of DeviceParametersBuilders.DeviceParameters.Builder.

Methods
public DeviceParametersBuilders.Capabilitiesbuild()

Builds an instance from accumulated values.

public DeviceParametersBuilders.Capabilities.BuildersetMinimumFreshnessLimitMillis(long minimumFreshnessLimitMillis)

Sets current minimum freshness limit in milliseconds for a layout.

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

Constructors

public Builder()

Creates an instance of DeviceParametersBuilders.DeviceParameters.Builder.

Methods

public DeviceParametersBuilders.Capabilities.Builder setMinimumFreshnessLimitMillis(long minimumFreshnessLimitMillis)

Sets 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.

Builds an instance from accumulated values.