DeviceParametersBuilders.Capabilities


@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
class DeviceParametersBuilders.Capabilities


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

Summary

Public functions

Long

Gets current minimum freshness limit in milliseconds for a layout.

String

Public functions

getMinimumFreshnessLimitMillis

Added in 1.0.0
fun getMinimumFreshnessLimitMillis(): Long

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.

toString

fun toString(): String