Image.Builder


class Image.Builder


Builder class for Image.

Summary

Public constructors

Public functions

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

Builder()

Public functions

build

fun build(): Image!

setAccessibilityText

@CanIgnoreReturnValue
fun setAccessibilityText(accessibilityText: String!): Image.Builder!

Sets the accessibility text of the image.

Required.

setImageCropType

@CanIgnoreReturnValue
fun setImageCropType(@ImageCropType imageCropType: Int): Image.Builder!

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

Optional.

setImageHeightInPixel

@CanIgnoreReturnValue
fun setImageHeightInPixel(imageHeightInPixel: Int): Image.Builder!

Sets the height of the image.

Required.

setImageTheme

@CanIgnoreReturnValue
fun setImageTheme(@ImageTheme imageTheme: Int): Image.Builder!

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

Optional.

setImageUri

@CanIgnoreReturnValue
fun setImageUri(imageUri: Uri!): Image.Builder!

Sets the url of the image.

Required.

setImageWidthInPixel

@CanIgnoreReturnValue
fun setImageWidthInPixel(imageWidthInPixel: Int): Image.Builder!

Sets the width of the image.

Required.