Image.Builder


public final class Image.Builder


Builder class for Image.

Summary

Public constructors

Public methods

Image
Image.Builder

Sets the accessibility text of the image.

Image.Builder

Sets the crop type (e.g. CIRCLE) of the provided image.

Image.Builder

Sets the height of the image.

Image.Builder

Sets the theme (e.g. LIGHT, DARK) for the image.

Image.Builder

Sets the url of the image.

Image.Builder

Sets the width of the image.

Public constructors

Builder

public Builder()

Public methods

build

public Image build()

setAccessibilityText

@CanIgnoreReturnValue
public Image.Builder setAccessibilityText(String accessibilityText)

Sets the accessibility text of the image.

Required.

setImageCropType

@CanIgnoreReturnValue
public Image.Builder setImageCropType(@ImageCropType int imageCropType)

Sets the crop type (e.g. CIRCLE) of the provided image.

Optional.

setImageHeightInPixel

@CanIgnoreReturnValue
public Image.Builder setImageHeightInPixel(int imageHeightInPixel)

Sets the height of the image.

Required.

setImageTheme

@CanIgnoreReturnValue
public Image.Builder setImageTheme(@ImageTheme int imageTheme)

Sets the theme (e.g. LIGHT, DARK) for the image.

Optional.

setImageUri

@CanIgnoreReturnValue
public Image.Builder setImageUri(Uri imageUri)

Sets the url of the image.

Required.

setImageWidthInPixel

@CanIgnoreReturnValue
public Image.Builder setImageWidthInPixel(int imageWidthInPixel)

Sets the width of the image.

Required.