ResourceBuilders.ImageResource.Builder
class ResourceBuilders.ImageResource.Builder
Builder for ImageResource
Summary
Public functions
build
Added in 1.0.0
fun build(): ResourceBuilders.ImageResource
Builds an instance from accumulated values.
setAndroidAnimatedResourceByResId
Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
fun setAndroidAnimatedResourceByResId(
androidAnimatedResourceByResId: ResourceBuilders.AndroidAnimatedImageResourceByResId
): ResourceBuilders.ImageResource.Builder
Sets a non-seekable animated image resource that maps to an Android drawable by resource ID. The animation is started with given trigger, fire and forget.
setAndroidResourceByResId
Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setAndroidResourceByResId(
androidResourceByResId: ResourceBuilders.AndroidImageResourceByResId
): ResourceBuilders.ImageResource.Builder
Sets an image resource that maps to an Android drawable by resource ID.
setAndroidSeekableAnimatedResourceByResId
Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
fun setAndroidSeekableAnimatedResourceByResId(
androidSeekableAnimatedResourceByResId: ResourceBuilders.AndroidSeekableAnimatedImageResourceByResId
): ResourceBuilders.ImageResource.Builder
Sets a seekable animated image resource that maps to an Android drawable by resource ID. The animation progress is bound to the provided dynamic float.
setInlineResource
Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setInlineResource(inlineResource: ResourceBuilders.InlineImageResource): ResourceBuilders.ImageResource.Builder
Sets an image resource that contains the image data inline.