{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BuildDrawCacheParams

public interface BuildDrawCacheParams


The set of parameters which could be used to build the drawing cache.

See also
onBuildCache

Summary

Public methods

abstract @NonNull Density

The current screen density to provide the ability to convert between

abstract @NonNull LayoutDirection

The current layout direction.

abstract @NonNull Size

The current size of the drawing environment

Public methods

getDensity

abstract @NonNull Density getDensity()

The current screen density to provide the ability to convert between

getLayoutDirection

abstract @NonNull LayoutDirection getLayoutDirection()

The current layout direction.

getSize

abstract @NonNull Size getSize()

The current size of the drawing environment