ResourceBuilders.ImageResource.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class ResourceBuilders.ImageResource.Builder


Builder for ImageResource

Summary

Public constructors

Public methods

@NonNull ResourceBuilders.ImageResource

Builds an instance from accumulated values.

@NonNull ResourceBuilders.ImageResource.Builder

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

@NonNull 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
public Builder()

Public methods

build

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ResourceBuilders.ImageResource build()

Builds an instance from accumulated values.

setAndroidResourceByResId

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ResourceBuilders.ImageResource.Builder setAndroidResourceByResId(
    @NonNull ResourceBuilders.AndroidImageResourceByResId androidResourceByResId
)

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

setInlineResource

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull ResourceBuilders.ImageResource.Builder setInlineResource(
    @NonNull ResourceBuilders.InlineImageResource inlineResource
)

Sets an image resource that contains the image data inline.