ResourceBuilders.ImageResource

Added in 1.0.0
Deprecated in 1.2.0

class ResourceBuilders.ImageResource


An image resource, which can be used by layouts. This holds multiple underlying resource types, which the underlying runtime will pick according to what it thinks is appropriate.

Summary

Nested types

Builder for ImageResource

Public functions

ResourceBuilders.AndroidImageResourceByResId?

Gets an image resource that maps to an Android drawable by resource ID.

ResourceBuilders.InlineImageResource?

Gets an image resource that contains the image data inline.

Public functions

getAndroidResourceByResId

Added in 1.0.0
Deprecated in 1.2.0
fun getAndroidResourceByResId(): ResourceBuilders.AndroidImageResourceByResId?

Gets an image resource that maps to an Android drawable by resource ID. Intended for testing purposes only.

getInlineResource

Added in 1.0.0
Deprecated in 1.2.0
fun getInlineResource(): ResourceBuilders.InlineImageResource?

Gets an image resource that contains the image data inline. Intended for testing purposes only.