DeviceParametersBuilders.Capabilities.Builder


public final class DeviceParametersBuilders.Capabilities.Builder


Builder for Capabilities

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull DeviceParametersBuilders.Capabilities

Builds an instance from accumulated values.

@NonNull DeviceParametersBuilders.Capabilities.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setMinimumFreshnessLimitMillis(long minimumFreshnessLimitMillis)

Sets current minimum freshness limit in milliseconds for a layout.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull DeviceParametersBuilders.Capabilities build()

Builds an instance from accumulated values.

setMinimumFreshnessLimitMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull 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.