ImageSource

open class ImageSource @JvmOverloads constructor(context: Context, val source: String?, width: Double = 0.0, height: Double = 0.0, val cacheControl: ImageCacheControl = ImageCacheControl.DEFAULT)

Class describing an image source (network URI or resource) and size.

Constructors

Link copied to clipboard
constructor(context: Context, source: String?, width: Double = 0.0, height: Double = 0.0, cacheControl: ImageCacheControl = ImageCacheControl.DEFAULT)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Get whether this image source represents an Android resource or a network URI.

Link copied to clipboard

Get the area of this image.

Link copied to clipboard

Get the source of this image, as it was passed to the constructor.

Link copied to clipboard
open val uri: Uri

Get the URI for this image - can be either a parsed network URI or a resource URI.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int