public final class

DynamicTypeEvaluator.Config

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.expression.pipeline.DynamicTypeEvaluator.Config

Overview

Configuration for creating DynamicTypeEvaluator.

Summary

Methods
public QuotaManagergetAnimationQuotaManager()

Gets the quota manager used for limiting the number of concurrently running animations, or null if animations are disabled, causing non-infinite animations to have to the end value immediately.

public java.util.function.Supplier<java.time.Instant>getClock()

Returns the clock (java.time.Instant supplier) used for providing time data to bindings, or null which means on every reevaluation, platform time for dynamic values will be set to now.

public QuotaManagergetDynamicTypesQuotaManager()

Gets the quota manager used for limiting the total number of dynamic types in the pipeline, or null if there are no restriction on the number of dynamic types.

public java.util.Map<PlatformDataKey, PlatformDataProvider>getPlatformDataProviders()

Returns any available mapping between source key and its data provider.

public PlatformTimeUpdateNotifiergetPlatformTimeUpdateNotifier()

Gets the notifier used for updating the platform time data.

public StateStoregetStateStore()

Gets the state store that will be used for dereferencing the state keys in the dynamic types, or null which is equivalent to an empty state store (state bindings will trigger DynamicTypeValueReceiver.onInvalidated()).

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

Methods

public StateStore getStateStore()

Gets the state store that will be used for dereferencing the state keys in the dynamic types, or null which is equivalent to an empty state store (state bindings will trigger DynamicTypeValueReceiver.onInvalidated()).

public QuotaManager getAnimationQuotaManager()

Gets the quota manager used for limiting the number of concurrently running animations, or null if animations are disabled, causing non-infinite animations to have to the end value immediately.

public QuotaManager getDynamicTypesQuotaManager()

Gets the quota manager used for limiting the total number of dynamic types in the pipeline, or null if there are no restriction on the number of dynamic types. If present, the quota manager is used to prevent unreasonably expensive expressions.

public java.util.Map<PlatformDataKey, PlatformDataProvider> getPlatformDataProviders()

Returns any available mapping between source key and its data provider.

public java.util.function.Supplier<java.time.Instant> getClock()

Returns the clock (java.time.Instant supplier) used for providing time data to bindings, or null which means on every reevaluation, platform time for dynamic values will be set to now.

public PlatformTimeUpdateNotifier getPlatformTimeUpdateNotifier()

Gets the notifier used for updating the platform time data.