ZoomableImageSource

sealed interface ZoomableImageSource(source)

Defines the ZoomableImageSource contract for the SDAI presentation layer.

Author

Dmitriy Moroz

Inheritors

Types

Link copied to clipboard
data class Bitmap(val image: ImageBitmap) : ZoomableImageSource

Carries Bitmap data through the SDAI presentation layer.

Properties

Link copied to clipboard

Exposes the ZoomableImageSource value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the ZoomableImageSource value used by the SDAI presentation layer.

Functions

Link copied to clipboard
private fun ZoomableImageSource.sizeForContainer(containerSize: IntSize, fitToWidth: Boolean): ImageContentSize

Executes the sizeForContainer step in the SDAI presentation layer.