DynamicTypeEvaluator.Config


class DynamicTypeEvaluator.Config


Configuration for creating DynamicTypeEvaluator.

Summary

Public functions

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.

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.

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.

(Mutable)Map<PlatformDataKey<Any!>!, PlatformDataProvider!>

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

PlatformTimeUpdateNotifier?

Gets the notifier used for updating the platform time data.

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 functions

getAnimationQuotaManager

Added in 1.0.0
fun getAnimationQuotaManager(): 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.

getClock

Added in 1.0.0
@VisibleForTesting
fun getClock(): 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.

getDynamicTypesQuotaManager

Added in 1.0.0
fun getDynamicTypesQuotaManager(): 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. If present, the quota manager is used to prevent unreasonably expensive expressions.

getPlatformDataProviders

Added in 1.0.0
fun getPlatformDataProviders(): (Mutable)Map<PlatformDataKey<Any!>!, PlatformDataProvider!>

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

getPlatformTimeUpdateNotifier

Added in 1.0.0
fun getPlatformTimeUpdateNotifier(): PlatformTimeUpdateNotifier?

Gets the notifier used for updating the platform time data.

getStateStore

Added in 1.0.0
fun getStateStore(): 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).