ZoomSpec

class ZoomSpec(val maximum: ZoomLimit = ZoomLimit(factor = 2f, overzoomEffect = OverzoomEffect.RubberBanding), val minimum: ZoomLimit = ZoomLimit(factor = 1f, overzoomEffect = OverzoomEffect.RubberBanding))

Also see: DynamicZoomSpec.

Constructors

Link copied to clipboard
constructor(maxZoomFactor: Float = 2.0f, minZoomFactor: Float = 1.0f, overzoomEffect: OverzoomEffect = OverzoomEffect.RubberBanding)
constructor(maxZoomFactor: Float, preventOverOrUnderZoom: Boolean)
constructor(preventOverOrUnderZoom: Boolean)
constructor(maximum: ZoomLimit = ZoomLimit(factor = 2f, overzoomEffect = OverzoomEffect.RubberBanding), minimum: ZoomLimit = ZoomLimit(factor = 1f, overzoomEffect = OverzoomEffect.RubberBanding))

Properties

Link copied to clipboard

The maximum zoom level as a percentage of the content's unscaled/original size. For example, a factor of 2.0 allows zooming up to 200% of the original size.

Link copied to clipboard
Link copied to clipboard

The minimum zoom level relative to the content's base scale. The base scale is calculated using the content's original size and the content scale. For example, a factor of 1.0 ensures the content cannot be zoomed out beyond this base scale.

Link copied to clipboard