ResourceBuilders.AndroidImageResourceByResId.Builder


public final class ResourceBuilders.AndroidImageResourceByResId.Builder


Builder for AndroidImageResourceByResId

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ResourceBuilders.AndroidImageResourceByResId

Builds an instance from accumulated values.

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

Sets the Android resource ID of this image.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ResourceBuilders.AndroidImageResourceByResId build()

Builds an instance from accumulated values.

setResourceId

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ResourceBuilders.AndroidImageResourceByResId.Builder setResourceId(@DrawableRes int resourceId)

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