DynamicTypeEvaluator.Config


public final class DynamicTypeEvaluator.Config


Configuration for creating DynamicTypeEvaluator.

Summary

Nested types

Builds a DynamicTypeEvaluator.Config.

Public methods

@Nullable QuotaManager

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.

@Nullable Supplier<Instant>

Returns the clock (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.

@Nullable QuotaManager

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.

@NonNull Map<PlatformDataKey<Object>, PlatformDataProvider>

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

@Nullable PlatformTimeUpdateNotifier

Gets the notifier used for updating the platform time data.

@Nullable StateStore

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 onInvalidated).

Public methods

getAnimationQuotaManager

Added in 1.0.0
public @Nullable 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.

getClock

Added in 1.0.0
@VisibleForTesting
public @Nullable Supplier<InstantgetClock()

Returns the clock (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.

getDynamicTypesQuotaManager

Added in 1.0.0
public @Nullable 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.

getPlatformDataProviders

Added in 1.0.0
public @NonNull Map<PlatformDataKey<Object>, PlatformDataProvidergetPlatformDataProviders()

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

getPlatformTimeUpdateNotifier

Added in 1.0.0
public @Nullable PlatformTimeUpdateNotifier getPlatformTimeUpdateNotifier()

Gets the notifier used for updating the platform time data.

getStateStore

Added in 1.0.0
public @Nullable 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 onInvalidated).