Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

build
Link copied to clipboard
open fun build(): RenderCacheOptions
size
Link copied to clipboard

Maximum size allocated for the render cache in megabytes. Setting the value to zero will effectively disable the feature. Recommended starting values for the cache sizes are 64 and 128 for devices with pixel ratio 1.0 and > 1.0 respectively.

open fun size(size: Integer): RenderCacheOptions.Builder

Extensions

setDisabled
Link copied to clipboard

Set render cache size to 0MB in order to disable it.

setLargeSize
Link copied to clipboard

Set render cache size to large(128MB).

Works best with devices powerful GPUs, or devices with pixel ratio 1.0.

setSmallSize
Link copied to clipboard

Set render cache size to small(64MB).

Works best with devices with not so powerful GPUs, or devices with pixel ratio of 1.0.