# Image

# Image

*** ** * ** ***

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

<br />

```
class Image
```

<br />

*** ** * ** ***

An object representing an image.

## Summary

|                                                                                                                      ### Nested types                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[Image.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image.Builder) Builder class for[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image). |

|                                                                               ### Public functions                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!` | [getAccessibilityText](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#getAccessibilityText())`()` Returns the accessibility text of the image. |

|                           ### Public properties                            |
|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `@`[ImageCropType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ImageCropType) [imageCropType](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#imageCropType()) |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [imageHeightInPixel](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#imageHeightInPixel())                                                                                                                   |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `@`[ImageTheme](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/ImageTheme) [imageTheme](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#imageTheme())             |
| [Uri](https://developer.android.com/reference/android/net/Uri.html)`!`     | [imageUri](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#imageUri())                                                                                                                                       |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [imageWidthInPixel](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image#imageWidthInPixel())                                                                                                                     |

## Public functions

### getAccessibilityText

```
fun getAccessibilityText(): Optional<String!>!
```

Returns the accessibility text of the image.  

## Public properties

### imageCropType

```
@ImageCropType
val imageCropType: Int
```  

### imageHeightInPixel

```
val imageHeightInPixel: Int
```  

### imageTheme

```
@ImageTheme
val imageTheme: Int
```  

### imageUri

```
val imageUri: Uri!
```  

### imageWidthInPixel

```
val imageWidthInPixel: Int
```