# SmallImage

# SmallImage

Artifact:[androidx.wear.watchface:watchface-complications-data](https://developer.android.com/jetpack/androidx/releases/wear-watchface)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/complications/data/Image.kt+class:androidx.wear.watchface.complications.data.SmallImage)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/watchface/complications/data/SmallImage "View this page in Java")

<br />

```
class SmallImage
```

<br />

*** ** * ** ***

An image that is expected to cover a small fraction of a watch face occupied by a single complication. A SmallImage must not be tinted.

An ambient alternative is provided that may be shown instead of the regular image while the watch is not active.

## Summary

|                                                                                                                             ### Nested types                                                                                                                              |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[SmallImage.Builder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage.Builder) Builder for[SmallImage](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage). |

|                                          ### Public companion properties                                           |
|--------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SmallImage](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage) | [PLACEHOLDER](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#PLACEHOLDER()) For use when the real data isn't available yet, this[SmallImage](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage)should be rendered as a placeholder. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#toString())`()`                                                                                            |

|                                                   ### Public properties                                                    |
|----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Icon](https://developer.android.com/reference/android/graphics/drawable/Icon.html)`?`                                     | [ambientImage](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#ambientImage()) The image to be shown when the device is in ambient mode to save power or avoid burn in |
| [Icon](https://developer.android.com/reference/android/graphics/drawable/Icon.html)                                        | [image](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#image()) The image itself                                                                                      |
| [SmallImageType](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImageType) | [type](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage#type()) The style of the image provided, to guide how it should be displayed                                    |

## Public companion properties

### PLACEHOLDER

```
val PLACEHOLDER: SmallImage
```

For use when the real data isn't available yet, this[SmallImage](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/SmallImage)should be rendered as a placeholder. It is suggested that it should be rendered with a light grey box.

Note a placeholder may only be used in the context of[NoDataComplicationData.placeholder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/NoDataComplicationData#placeholder()).  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```  

## Public properties

### ambientImage

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  

```
val ambientImage: Icon?
```

The image to be shown when the device is in ambient mode to save power or avoid burn in  

### image

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  

```
val image: Icon
```

The image itself  

### type

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  

```
val type: SmallImageType
```

The style of the image provided, to guide how it should be displayed