ResourceBuilders.ImageResource.Builder

Added in 1.0.0
Deprecated in 1.2.0

class ResourceBuilders.ImageResource.Builder


Builder for ImageResource

Summary

Public constructors

Public functions

ResourceBuilders.ImageResource

Builds an instance from accumulated values.

ResourceBuilders.ImageResource.Builder

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

ResourceBuilders.ImageResource.Builder

Sets an image resource that contains the image data inline.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
Builder()

Public functions

build

Added in 1.0.0
Deprecated in 1.2.0
fun build(): ResourceBuilders.ImageResource

Builds an instance from accumulated values.

setAndroidResourceByResId

Added in 1.0.0
Deprecated in 1.2.0
fun setAndroidResourceByResId(
    androidResourceByResId: ResourceBuilders.AndroidImageResourceByResId
): ResourceBuilders.ImageResource.Builder

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

setInlineResource

Added in 1.0.0
Deprecated in 1.2.0
fun setInlineResource(inlineResource: ResourceBuilders.InlineImageResource): ResourceBuilders.ImageResource.Builder

Sets an image resource that contains the image data inline.