-
public final class PdfViewerConfigurationClass to hold rendering options for a PDF previewer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPdfViewerConfiguration.Companion
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisDebugEnabledprivate final FloatthumbnailQualityprivate final FloatrenderTileSizeprivate final FloatpreloadMarginDpprivate final IntegermaxCachedBitmapsprivate final IntegermaxCachedPagesprivate final IntegermaxCachedThumbnailsprivate final FloatminZoomprivate final FloatmaxZoom
-
Method Summary
Modifier and Type Method Description final BooleangetIsDebugEnabled()Enable debug mode to see logs. final FloatgetThumbnailQuality()Between 0 and 1, the thumbnails quality (default 0.7). final FloatgetRenderTileSize()The size of the rendered parts (default 512 for better quality). final FloatgetPreloadMarginDp()Part of the document above and below the screen that should be preloaded, in dp. final IntegergetMaxCachedBitmaps()The size of the cache (number of bitmaps kept). final IntegergetMaxCachedPages()Max pages kept in View Increasing this value may cause performance decrease final IntegergetMaxCachedThumbnails()The size of the thumbnails cache (number of bitmaps kept). final FloatgetMinZoom()Minimum zoom level. final FloatgetMaxZoom()Maximum zoom level. -
-
Method Detail
-
getIsDebugEnabled
final Boolean getIsDebugEnabled()
Enable debug mode to see logs.
-
getThumbnailQuality
final Float getThumbnailQuality()
Between 0 and 1, the thumbnails quality (default 0.7). Increasing this value may cause performance decrease.
-
getRenderTileSize
final Float getRenderTileSize()
The size of the rendered parts (default 512 for better quality). Tinier : a little bit slower to have the whole page rendered but more reactive. Bigger : user will have to wait longer to have the first visual results
-
getPreloadMarginDp
final Float getPreloadMarginDp()
Part of the document above and below the screen that should be preloaded, in dp.
-
getMaxCachedBitmaps
final Integer getMaxCachedBitmaps()
The size of the cache (number of bitmaps kept). Increased to 64 to support better caching at high zoom levels (3-4×) and reduce cache thrashing during multi-page viewing.
-
getMaxCachedPages
final Integer getMaxCachedPages()
Max pages kept in View Increasing this value may cause performance decrease
-
getMaxCachedThumbnails
final Integer getMaxCachedThumbnails()
The size of the thumbnails cache (number of bitmaps kept).
-
getMinZoom
final Float getMinZoom()
Minimum zoom level.
-
getMaxZoom
final Float getMaxZoom()
Maximum zoom level.
-
-
-
-