ResourceBuilders.ImageResource.Builder

public final class ResourceBuilders.ImageResource.Builder


Builder for ImageResource

Summary

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 maps to an Android drawable by resource ID.

@NonNull ResourceBuilders.ImageResource.Builder

Sets an image resource that contains the image data inline.

@NonNull ResourceBuilders.ImageResource.Builder

Sets an image resource that contains the image data inline.

Public methods

build

@NonNull
public ResourceBuilders.ImageResource build()

Builds an instance from accumulated values.

setAndroidResourceByResId

@NonNull
public ResourceBuilders.ImageResource.Builder setAndroidResourceByResId(
    @NonNull ResourceBuilders.AndroidImageResourceByResId androidResourceByResId
)

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

setAndroidResourceByResId

@NonNull
public ResourceBuilders.ImageResource.Builder setAndroidResourceByResId(
    @NonNull ResourceBuilders.AndroidImageResourceByResId.Builder androidResourceByResIdBuilder
)

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

setInlineResource

@NonNull
public ResourceBuilders.ImageResource.Builder setInlineResource(
    @NonNull ResourceBuilders.InlineImageResource inlineResource
)

Sets an image resource that contains the image data inline.

setInlineResource

@NonNull
public ResourceBuilders.ImageResource.Builder setInlineResource(
    @NonNull ResourceBuilders.InlineImageResource.Builder inlineResourceBuilder
)

Sets an image resource that contains the image data inline.