DeviceParametersBuilders.Capabilities.Builder


class DeviceParametersBuilders.Capabilities.Builder


Builder for Capabilities

Summary

Public constructors

Creates an instance of Builder.

Public functions

DeviceParametersBuilders.Capabilities

Builds an instance from accumulated values.

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

Sets current minimum freshness limit in milliseconds for a layout.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): DeviceParametersBuilders.Capabilities

Builds an instance from accumulated values.

setMinimumFreshnessLimitMillis

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun setMinimumFreshnessLimitMillis(minimumFreshnessLimitMillis: Long): DeviceParametersBuilders.Capabilities.Builder

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.