# Image.Builder

# Image.Builder

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image.Builder "View this page in Java")  

<br />

```
class Image.Builder
```

<br />

*** ** * ** ***

Builder class for[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image).

## Summary

|                                                     ### Public constructors                                                      |
|----------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#Builder())`()` |

|                                                    ### Public functions                                                     |
|-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAccessibilityText](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setAccessibilityText(java.lang.String))`(accessibilityText: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the accessibility text of the image.                                                                                                           |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setImageCropType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setImageCropType(int))`(@`[ImageCropType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ImageCropType)` imageCropType: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the crop type (e.g. CIRCLE) of the provided image. |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setImageHeightInPixel](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setImageHeightInPixel(int))`(imageHeightInPixel: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the height of the image.                                                                                                                                        |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setImageTheme](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setImageTheme(int))`(@`[ImageTheme](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ImageTheme)` imageTheme: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the theme (e.g. LIGHT, DARK) for the image.                       |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setImageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setImageUri(android.net.Uri))`(imageUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the url of the image.                                                                                                                                                                   |
| [Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setImageWidthInPixel](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder#setImageWidthInPixel(int))`(imageWidthInPixel: `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` 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.