# ComplicationData

Summary:[Nested Classes](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#nestedclasses)\|[Constants](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#constants)\|[Inherited Constants](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#lfields)\|[Methods](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData#inhmethods)  

# ComplicationData

`
public


class
ComplicationData
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


implements

`[Parcelable](http://developer.android.com/reference/android/os/Parcelable.html)`


`

|---|---------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.complications.ComplicationData |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.

Container for complication data of all types.

A[ComplicationProviderService](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html)should create instances of this class using[ComplicationData.Builder](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.Builder.html)and send them to the complication system by calling[ComplicationManager.updateComplicationData(int, ComplicationData)](https://developer.android.com/reference/android/support/wearable/complications/ComplicationManager.html#updateComplicationData(int,%20android.support.wearable.complications.ComplicationData)). Depending on the type of complication data, some fields will be required and some will be optional - see the documentation for each type, and for the builder's set methods, for details.

A watch face will receive instances of this class via its[onComplicationDataUpdate](https://developer.android.com/reference/android/support/wearable/watchface/WatchFaceService.Engine.html#onComplicationDataUpdate(int,%20android.support.wearable.complications.ComplicationData))method, as long as providers are configured and[setActiveComplications](https://developer.android.com/reference/android/support/wearable/watchface/WatchFaceService.Engine.html#setActiveComplications(int...))has been called.

When rendering the complication data for a given time, the watch face should first call[isActive(long)](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#isActive(long))to determine whether the data is valid at that time. See the documentation for each of the complication types below for details of which fields are expected to be displayed.

## Summary

|                                                                                                                                                          ### Nested classes                                                                                                                                                           ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class`      | [ComplicationData.Builder](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.Builder.html) *This class is deprecated. use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.*                        |
| ` @interface` | [ComplicationData.ComplicationType](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.ComplicationType.html) *This @interface is deprecated. use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.* |
| ` @interface` | [ComplicationData.ImageStyle](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.ImageStyle.html) *This @interface is deprecated. use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.*             |

|                                                                                                                                             ### Constants                                                                                                                                             ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [IMAGE_STYLE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_ICON) Style for small images that have a transparent background and are expected to be drawn entirely within the space available, such as a launcher icon. |
| `int` | [IMAGE_STYLE_PHOTO](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_PHOTO) Style for small images which are photos that are expected to fill the space available.                                                             |
| `int` | [TYPE_EMPTY](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_EMPTY) Type sent when the user has specified that an active complication should have no provider, i.e.                                                                  |
| `int` | [TYPE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_ICON) Type used for complications which consist only of a tintable icon.                                                                                                 |
| `int` | [TYPE_LARGE_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LARGE_IMAGE) Type used for complications which consist only of a large image.                                                                                     |
| `int` | [TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT) Type used for complications where the primary piece of data is a piece of text.                                                                          |
| `int` | [TYPE_NOT_CONFIGURED](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NOT_CONFIGURED) Type sent when a complication does not have a provider configured.                                                                             |
| `int` | [TYPE_NO_DATA](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_DATA) Type that can be sent by any provider, regardless of the configured type, when the provider has no data to be displayed.                                     |
| `int` | [TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION) Type sent by the system when the watch face does not have permission to receive complication data.                                               |
| `int` | [TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE) Type used for complications including a numerical value within a range, such as a percentage.                                                      |
| `int` | [TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT) Type used for complications where the primary piece of data is a short piece of text (expected to be no more than seven characters in length).         |
| `int` | [TYPE_SMALL_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SMALL_IMAGE) Type used for complications which consist only of a small image.                                                                                     |

|                                                                                    ### Inherited constants                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface`android.os.Parcelable` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                                                                                                ### Fields                                                                                                                                                                                 ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](http://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[ComplicationData](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html)`>` | [CREATOR](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#CREATOR) <br /> |

|                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                                      | ` `[describeContents](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#describeContents())`() `                                                                                                                                                         |
| ` `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                       | ` `[getBurnInProtectionIcon](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getBurnInProtectionIcon())`() ` Returns the burn-in protection version of the*icon* field for this complication, or`null`if no such icon was provided.                    |
| ` `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                       | ` `[getBurnInProtectionSmallImage](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getBurnInProtectionSmallImage())`() ` Returns the burn-in protection version of the*small image* field for this complication, or`null`if no such icon was provided. |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getContentDescription](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getContentDescription())`() ` Returns the*content description override*field for this complication, for screen readers.                                                     |
| ` `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                       | ` `[getIcon](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getIcon())`() ` Returns the*icon* field for this complication, or`null`if no value was provided for the field.                                                                            |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getImageContentDescription](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getImageContentDescription())`() ` Returns the*image content description*field for this complication, for screen readers.                                              |
| ` int`                                                                                                                      | ` `[getImageStyle](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getImageStyle())`() ` Returns the*image style*field for this complication.                                                                                                          |
| ` `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                       | ` `[getLargeImage](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getLargeImage())`() ` Returns the*large image*field for this complication.                                                                                                          |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getLongText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getLongText())`() ` Returns the*long text*field for this complication.                                                                                                                |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getLongTitle](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getLongTitle())`() ` Returns the*long title* field for this complication, or`null`if no value was provided for the field.                                                            |
| ` float`                                                                                                                    | ` `[getMaxValue](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getMaxValue())`() ` Returns the*max value*field for this complication.                                                                                                                |
| ` float`                                                                                                                    | ` `[getMinValue](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getMinValue())`() ` Returns the*min value*field for this complication.                                                                                                                |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getShortText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getShortText())`() ` Returns the*short text* field for this complication, or`null`if no value was provided for the field.                                                            |
| ` `[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | ` `[getShortTitle](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getShortTitle())`() ` Returns the*short title* field for this complication, or`null`if no value was provided for the field.                                                         |
| ` `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                       | ` `[getSmallImage](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getSmallImage())`() ` Returns the*small image* field for this complication, or`null`if no value was provided for the field.                                                         |
| ` `[PendingIntent](http://developer.android.com/reference/android/app/PendingIntent.html)                                   | ` `[getTapAction](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getTapAction())`() ` Returns the*tap action*field for this complication.                                                                                                             |
| ` int`                                                                                                                      | ` `[getType](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getType())`() ` Returns the type of this complication data.                                                                                                                               |
| ` float`                                                                                                                    | ` `[getValue](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getValue())`() ` Returns the*value*field for this complication.                                                                                                                          |
| ` boolean`                                                                                                                  | ` `[isActive](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#isActive(long))`(long dateTimeMillis) ` Returns true if the complication is active and should be displayed at the given time.                                                            |
| ` `[String](http://developer.android.com/reference/java/lang/String.html)                                                   | ` `[toString](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#toString())`() `                                                                                                                                                                         |
| ` void`                                                                                                                     | ` `[writeToParcel](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](http://developer.android.com/reference/android/os/Parcel.html)` dest, int flags) `                                              |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||
| From interface` `[android.os.Parcelable](http://developer.android.com/reference/android/os/Parcelable.html)` ` |------------------|-------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` describeContents() `                                                                                      | | ` abstract void` | ` writeToParcel(`[Parcel](http://developer.android.com/reference/android/os/Parcel.html)` arg0, int arg1) ` | ||

## Constants

### IMAGE_STYLE_ICON

```
public static final int IMAGE_STYLE_ICON
```

Style for small images that have a transparent background and are expected to be drawn entirely within the space available, such as a launcher icon. Watch faces may add padding when drawing these images, but should never crop these images.

<br />

Constant Value: 2 (0x00000002)  

### IMAGE_STYLE_PHOTO

```
public static final int IMAGE_STYLE_PHOTO
```

Style for small images which are photos that are expected to fill the space available. Images of this style may be cropped to fit the shape of the complication - in particular, the image may be cropped to a circle.

This is the default value.

<br />

Constant Value: 1 (0x00000001)  

### TYPE_EMPTY

```
public static final int TYPE_EMPTY
```

Type sent when the user has specified that an active complication should have no provider, i.e. when the user has chosen "Empty" in the provider chooser. Providers cannot send data of this type.

No fields may be populated for complication data of this type.

<br />

Constant Value: 2 (0x00000002)  

### TYPE_ICON

```
public static final int TYPE_ICON
```

Type used for complications which consist only of a tintable icon.

The*icon* field is required for this type, and is expected to always be displayed, unless the device is in ambient mode with burn-in protection enabled, in which case the*burnInProtectionIcon*field should be used instead.

The contentDescription field is recommended for this type. Use it to describe what data the icon represents. If the icon is purely stylistic, and does not convey any information to the user, then enter the empty string as the contentDescription.

No other fields are valid for this type.

<br />

Constant Value: 6 (0x00000006)  

### TYPE_LARGE_IMAGE

```
public static final int TYPE_LARGE_IMAGE
```

Type used for complications which consist only of a large image. A large image here is one that could be used to fill the watch face, for example as the background.

The*large image*field is required for this type, and is expected to always be displayed, unless the device is in ambient mode.

The contentDescription field is recommended for this type. Use it to describe what data the image represents. If the image is purely stylistic, and does not convey any information to the user, then enter the empty string as the contentDescription.

No other fields are valid for this type.

<br />

Constant Value: 8 (0x00000008)  

### TYPE_LONG_TEXT

```
public static final int TYPE_LONG_TEXT
```

Type used for complications where the primary piece of data is a piece of text. The text may be accompanied by an icon and/or a title.

The*long text*field is required for this type, and is expected to always be displayed.

The*long title*field is optional for this type. If provided, it is expected that this field will be displayed.

The*icon* (and*burnInProtectionIcon* ) and*small image*fields are also optional for this type. If provided, at least one of these should be displayed.

<br />

Constant Value: 4 (0x00000004)  

### TYPE_NOT_CONFIGURED

```
public static final int TYPE_NOT_CONFIGURED
```

Type sent when a complication does not have a provider configured. The system will send data of this type to watch faces when the user has not chosen a provider for an active complication, and the watch face has not set a default provider. Providers cannot send data of this type.

No fields may be populated for complication data of this type.

<br />

Constant Value: 1 (0x00000001)  

### TYPE_NO_DATA

```
public static final int TYPE_NO_DATA
```

Type that can be sent by any provider, regardless of the configured type, when the provider has no data to be displayed. Watch faces may choose whether to render this in some way or leave the slot empty.

No fields may be populated for complication data of this type.

<br />

Constant Value: 10 (0x0000000a)  

### TYPE_NO_PERMISSION

```
public static final int TYPE_NO_PERMISSION
```

Type sent by the system when the watch face does not have permission to receive complication data.

Fields will be populated to allow the data to be rendered as if it were of[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT)or[TYPE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_ICON)for consistency and convenience, but watch faces may render this as they see fit.

It is recommended that, where possible, tapping on the complication when in this state should trigger a permission request. A[ComplicationHelperActivity](https://developer.android.com/reference/android/support/wearable/complications/ComplicationHelperActivity.html)may be used to make this request and update all complications if permission is granted.

<br />

Constant Value: 9 (0x00000009)  

### TYPE_RANGED_VALUE

```
public static final int TYPE_RANGED_VALUE
```

Type used for complications including a numerical value within a range, such as a percentage. The value may be accompanied by an icon and/or short text and title.

The*value* ,*min value* , and*max value*fields are required for this type, and the value within the range is expected to always be displayed.

The*icon* (and*burnInProtectionIcon* ),*short title* , and*short text*fields are optional for this type. The watch face may choose which of these fields to display, if any.

<br />

Constant Value: 5 (0x00000005)  

### TYPE_SHORT_TEXT

```
public static final int TYPE_SHORT_TEXT
```

Type used for complications where the primary piece of data is a short piece of text (expected to be no more than seven characters in length). The short text may be accompanied by an icon or a short title (or both, but if both are provided then a watch face may choose to display only one).

The*short text*field is required for this type, and is expected to always be displayed.

The*icon* (and*burnInProtectionIcon* ) and*short title*fields are optional for this type. If only one of these is provided, it is expected that it will be displayed. If both are provided, it is expected that one of these will be displayed.

<br />

Constant Value: 3 (0x00000003)  

### TYPE_SMALL_IMAGE

```
public static final int TYPE_SMALL_IMAGE
```

Type used for complications which consist only of a small image.

The*small image* field is required for this type, and is expected to always be displayed, unless the device is in ambient mode, in which case either nothing or the*burnInProtectionSmallImage*field may be used instead.

The contentDescription field is recommended for this type. Use it to describe what data the image represents. If the image is purely stylistic, and does not convey any information to the user, then enter the empty string as the contentDescription.

No other fields are valid for this type.

<br />

Constant Value: 7 (0x00000007)

## Fields

### CREATOR

```
public static final Creator<ComplicationData> CREATOR
```

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getBurnInProtectionIcon

```
public Icon getBurnInProtectionIcon ()
```

Returns the burn-in protection version of the*icon* field for this complication, or`null`if no such icon was provided. The image returned is expected to be an outline image suitable for use in ambient mode on screens with burn-in protection. The image is also expected to be single-color and so may be tinted to whatever color the watch face requires (but note that[Drawable.mutate()](http://developer.android.com/reference/android/graphics/drawable/Drawable.html#mutate())should be called before drawables are tinted, and that the color used should be suitable for ambient mode with burn-in protection).

If the device is in ambient mode, and utilises burn-in protection, then the result of this method must be used instead of the result of[getIcon()](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getIcon()).

Valid for the types[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT),[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT),[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE),[TYPE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_ICON), or[TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION).

<br />

|                                          Returns                                           ||
|------------------------------------------------------------------------------------|--------|
| [Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html) | <br /> |

### getBurnInProtectionSmallImage

```
public Icon getBurnInProtectionSmallImage ()
```

Returns the burn-in protection version of the*small image* field for this complication, or`null`if no such icon was provided. The image returned is expected to be an outline image suitable for use in ambient mode on screens with burn-in protection. The image is also expected to be single-color and so may be tinted to whatever color the watch face requires (but note that[Drawable.mutate()](http://developer.android.com/reference/android/graphics/drawable/Drawable.html#mutate())should be called before drawables are tinted, and that the color used should be suitable for ambient mode with burn-in protection).

If the device is in ambient mode, and utilises burn-in protection, then the result of this method must be used instead of the result of[getSmallImage()](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getSmallImage()).

Valid for the types[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT)and[TYPE_SMALL_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SMALL_IMAGE).

<br />

|                                          Returns                                           ||
|------------------------------------------------------------------------------------|--------|
| [Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html) | <br /> |

### getContentDescription

```
public ComplicationText getContentDescription ()
```

Returns the*content description override*field for this complication, for screen readers.

Valid for all non-empty types.

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getIcon

```
public Icon getIcon ()
```

Returns the*icon* field for this complication, or`null`if no value was provided for the field. The image returned is expected to be single-color and so may be tinted to whatever color the watch face requires (but note that[Drawable.mutate()](http://developer.android.com/reference/android/graphics/drawable/Drawable.html#mutate())should be called before drawables are tinted).

If the device is in ambient mode, and utilises burn-in protection, then the result of[getBurnInProtectionIcon()](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getBurnInProtectionIcon())must be used instead of this.

Valid for the types[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT),[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT),[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE),[TYPE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_ICON), or[TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION).

<br />

|                                          Returns                                           ||
|------------------------------------------------------------------------------------|--------|
| [Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html) | <br /> |

### getImageContentDescription

```
public ComplicationText getImageContentDescription ()
```

Returns the*image content description*field for this complication, for screen readers.

Valid for types that include the*icon* ,*large image* , or*small image*fields.

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getImageStyle

```
public int getImageStyle ()
```

Returns the*image style*field for this complication.

The result of this method should be taken in to account when drawing a small image complication.

Valid only for types that contain small images, i.e.[TYPE_SMALL_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SMALL_IMAGE)and[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT).

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

**See also:**

- [IMAGE_STYLE_PHOTO](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_PHOTO)
- [IMAGE_STYLE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_ICON)  

### getLargeImage

```
public Icon getLargeImage ()
```

Returns the*large image*field for this complication. This image is expected to be of a suitable size to fill the screen of the watch.

As this may be any image, it is unlikely to be suitable for display in ambient mode when burn-in protection is enabled, or in low-bit ambient mode, and should not be rendered under these circumstances.

Valid only if the type of this complication data is[TYPE_LARGE_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LARGE_IMAGE).

<br />

|                                          Returns                                           ||
|------------------------------------------------------------------------------------|--------|
| [Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html) | <br /> |

### getLongText

```
public ComplicationText getLongText ()
```

Returns the*long text*field for this complication.

The value is provided as a[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html)object, from which the text to display can be obtained for a given point in time.

Valid only if the type of this complication data is[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT).

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getLongTitle

```
public ComplicationText getLongTitle ()
```

Returns the*long title* field for this complication, or`null`if no value was provided for the field.

The value is provided as a[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html)object, from which the text to display can be obtained for a given point in time.

Valid only if the type of this complication data is[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT).

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getMaxValue

```
public float getMaxValue ()
```

Returns the*max value*field for this complication.

Valid only if the type of this complication data is[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE).

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getMinValue

```
public float getMinValue ()
```

Returns the*min value*field for this complication.

Valid only if the type of this complication data is[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE).

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### getShortText

```
public ComplicationText getShortText ()
```

Returns the*short text* field for this complication, or`null`if no value was provided for the field.

The value is provided as a[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html)object, from which the text to display can be obtained for a given point in time.

The length of the text, including any time-dependent values at any valid time, is expected to not exceed seven characters. When using this text, the watch face should be able to display any string of up to seven characters (reducing the text size appropriately if the string is very wide). Although not expected, it is possible that strings of more than seven characters might be seen, in which case they may be truncated.

Valid only if the type of this complication data is[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT),[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE), or[TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION).

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getShortTitle

```
public ComplicationText getShortTitle ()
```

Returns the*short title* field for this complication, or`null`if no value was provided for the field.

The value is provided as a[ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html)object, from which the text to display can be obtained for a given point in time.

The length of the text, including any time-dependent values at any valid time, is expected to not exceed seven characters. When using this text, the watch face should be able to display any string of up to seven characters (reducing the text size appropriately if the string is very wide). Although not expected, it is possible that strings of more than seven characters might be seen, in which case they may be truncated.

Valid only if the type of this complication data is[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT),[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE), or[TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION).

<br />

|                                                             Returns                                                              ||
|--------------------------------------------------------------------------------------------------------------------------|--------|
| [ComplicationText](https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html) | <br /> |

### getSmallImage

```
public Icon getSmallImage ()
```

Returns the*small image* field for this complication, or`null`if no value was provided for the field.

This may be either a[photo style](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_PHOTO)image, which is expected to fill the space available, or an[icon style](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#IMAGE_STYLE_ICON)image, which should be drawn entirely within the space available. Use[getImageStyle()](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#getImageStyle())to determine which of these applies.

As this may be any image, it is unlikely to be suitable for display in ambient mode when burn-in protection is enabled, or in low-bit ambient mode, and should not be rendered under these circumstances.

Valid for the types[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT)and[TYPE_SMALL_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SMALL_IMAGE).

<br />

|                                          Returns                                           ||
|------------------------------------------------------------------------------------|--------|
| [Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html) | <br /> |

### getTapAction

```
public PendingIntent getTapAction ()
```

Returns the*tap action* field for this complication. The result is a[PendingIntent](http://developer.android.com/reference/android/app/PendingIntent.html)that should be fired if the complication is tapped on, assuming the complication is tappable, or`null`if no tap action has been specified.

Valid for all non-empty types.

<br />

|                                            Returns                                             ||
|----------------------------------------------------------------------------------------|--------|
| [PendingIntent](http://developer.android.com/reference/android/app/PendingIntent.html) | <br /> |

### getType

```
public int getType ()
```

Returns the type of this complication data.

Will be one of[TYPE_SHORT_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SHORT_TEXT),[TYPE_LONG_TEXT](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LONG_TEXT),[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE),[TYPE_ICON](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_ICON),[TYPE_SMALL_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_SMALL_IMAGE),[TYPE_LARGE_IMAGE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_LARGE_IMAGE),[TYPE_NOT_CONFIGURED](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NOT_CONFIGURED),[TYPE_EMPTY](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_EMPTY),[TYPE_NO_PERMISSION](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_PERMISSION), or[TYPE_NO_DATA](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_NO_DATA).

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getValue

```
public float getValue ()
```

Returns the*value*field for this complication.

Valid only if the type of this complication data is[TYPE_RANGED_VALUE](https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html#TYPE_RANGED_VALUE).

<br />

|     Returns     ||
|---------|--------|
| `float` | <br /> |

### isActive

```
public boolean isActive (long dateTimeMillis)
```

Returns true if the complication is active and should be displayed at the given time. If this returns false, the complication should not be displayed.

This must be checked for any time for which the complication will be displayed.

<br />

|           Parameters            ||
|------------------|---------------|
| `dateTimeMillis` | `long` <br /> |

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### toString

```
public String toString ()
```

<br />

<br />

|                                    Returns                                     ||
|------------------------------------------------------------------------|--------|
| [String](http://developer.android.com/reference/java/lang/String.html) | <br /> |

### writeToParcel

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |