GetItemImageRequest

data class GetItemImageRequest(val itemId: UUID, val imageType: ImageType, val maxWidth: Int? = null, val maxHeight: Int? = null, val width: Int? = null, val height: Int? = null, val quality: Int? = null, val fillWidth: Int? = null, val fillHeight: Int? = null, val tag: String? = null, val format: ImageFormat? = null, val percentPlayed: Double? = null, val unplayedCount: Int? = null, val blur: Int? = null, val backgroundColor: String? = null, val foregroundLayer: String? = null, val imageIndex: Int? = null)

The item's image.

Constructors

Link copied to clipboard
constructor(itemId: UUID, imageType: ImageType, maxWidth: Int? = null, maxHeight: Int? = null, width: Int? = null, height: Int? = null, quality: Int? = null, fillWidth: Int? = null, fillHeight: Int? = null, tag: String? = null, format: ImageFormat? = null, percentPlayed: Double? = null, unplayedCount: Int? = null, blur: Int? = null, backgroundColor: String? = null, foregroundLayer: String? = null, imageIndex: Int? = null)

Properties

Link copied to clipboard
val backgroundColor: String? = null

Optional. Apply a background color for transparent images.

Link copied to clipboard
val blur: Int? = null

Optional. Blur image.

Link copied to clipboard
val fillHeight: Int? = null

Height of box to fill.

Link copied to clipboard
val fillWidth: Int? = null

Width of box to fill.

Link copied to clipboard
val foregroundLayer: String? = null

Optional. Apply a foreground layer on top of the image.

Link copied to clipboard
val format: ImageFormat? = null

Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image.

Link copied to clipboard
val height: Int? = null

The fixed image height to return.

Link copied to clipboard
val imageIndex: Int? = null

Image index.

Link copied to clipboard

Image type.

Link copied to clipboard

Item id.

Link copied to clipboard
val maxHeight: Int? = null

The maximum image height to return.

Link copied to clipboard
val maxWidth: Int? = null

The maximum image width to return.

Link copied to clipboard
val percentPlayed: Double? = null

Optional. Percent to render for the percent played overlay.

Link copied to clipboard
val quality: Int? = null

Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.

Link copied to clipboard
val tag: String? = null

Optional. Supply the cache tag from the item object to receive strong caching headers.

Link copied to clipboard
val unplayedCount: Int? = null

Optional. Unplayed count overlay to render.

Link copied to clipboard
val width: Int? = null

The fixed image width to return.