ResourceBuilders.AndroidImageResourceByResId.Builder


class ResourceBuilders.AndroidImageResourceByResId.Builder


Builder for AndroidImageResourceByResId

Summary

Public constructors

Creates an instance of Builder.

Public functions

ResourceBuilders.AndroidImageResourceByResId

Builds an instance from accumulated values.

ResourceBuilders.AndroidImageResourceByResId.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setResourceId(resourceId: @DrawableRes Int)

Sets the Android resource ID of this image.

Public constructors

Builder

Added in 1.0.0
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): ResourceBuilders.AndroidImageResourceByResId

Builds an instance from accumulated values.

setResourceId

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setResourceId(resourceId: @DrawableRes Int): ResourceBuilders.AndroidImageResourceByResId.Builder

Sets the Android resource ID of this image. This must refer to a drawable under R.drawable.