# ComplicationSlot

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

*** ** * ** ***


```
class ComplicationSlot
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Represents the slot an individual complication on the screen may go in. The number of ComplicationSlots is fixed (see `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager`) but ComplicationSlots can be enabled or disabled via `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting`.

Taps on the watch are tested first against each ComplicationSlot's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds#perComplicationTypeBounds()` for the relevant `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType`. Its assumed that `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds#perComplicationTypeBounds()` don't overlap. If no intersection was found then taps are checked against `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds#perComplicationTypeBounds()` expanded by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds#perComplicationTypeMargins()`. Expanded bounds can overlap so the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot` with the lowest id that intersects the coordinates, if any, is selected.

use Watch Face Format instead

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` | `[createBackgroundComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createBackgroundComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy))( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory, supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>, defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` | `[createEdgeComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.ComplicationTapFilter))( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory, supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>, defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy, bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds, complicationTapFilter: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` | `@https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationExperimental [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.BoundingArc,androidx.wear.watchface.ComplicationTapFilter))( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory, supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>, defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy, bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds, boundingArc: https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc, complicationTapFilter: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` | `[createRoundRectComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createRoundRectComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds))( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory, supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>, defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy, bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html` | `[computeBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean))(screen: https://developer.android.com/reference/android/graphics/Rect.html, applyMargins: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#equals(kotlin.Any))(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#hashCode())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isActiveAt](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#isActiveAt(java.time.Instant))(instant: https://developer.android.com/reference/java/time/Instant.html)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread [render](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#render(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))( canvas: https://developer.android.com/reference/android/graphics/Canvas.html, zonedDateTime: https://developer.android.com/reference/java/time/ZonedDateTime.html, renderParameters: https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread [renderHighlightLayer](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#renderHighlightLayer(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))( canvas: https://developer.android.com/reference/android/graphics/Canvas.html, zonedDateTime: https://developer.android.com/reference/java/time/ZonedDateTime.html, renderParameters: https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#accessibilityTraversalIndex()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#boundsType()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#canvasComplicationFactory()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationData>` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#complicationData()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#complicationSlotBounds()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#configExtras()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#defaultDataSourcePolicy()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#defaultDataSourceType()` **This property is deprecated.** Use DefaultComplicationDataSourcePolicy.systemDataSourceFallbackDefaultType instead |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#enabled()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#fixedComplicationDataSource()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#id()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#initiallyEnabled()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#nameResourceId()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#renderer()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html?` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#screenReaderNameResourceId()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#supportedTypes()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#tapFilter()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public companion functions

### createBackgroundComplicationSlotBuilder

```
fun [createBackgroundComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createBackgroundComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy))(
    id: Int,
    canvasComplicationFactory: CanvasComplicationFactory,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy
): ComplicationSlot.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Constructs a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bound type `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotBoundsType#BACKGROUND()` whose bounds cover the entire screen. A background complication is for watch faces that wish to have a full screen user selectable backdrop. This sort of complication isn't clickable and at most one may be present in the list of complicationSlots.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |

### createEdgeComplicationSlotBuilder

```
fun [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.ComplicationTapFilter))(
    id: Int,
    canvasComplicationFactory: CanvasComplicationFactory,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy,
    bounds: ComplicationSlotBounds,
    complicationTapFilter: ComplicationTapFilter
): ComplicationSlot.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Constructs a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotBoundsType#EDGE()`.

An edge complication is drawn around the border of the display and has custom hit test logic (see `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Companion#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.ComplicationTapFilter)`). When tapped the associated intent is dispatched. Edge complicationSlots should have a custom `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#renderer()` with `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication#drawHighlight(android.graphics.Canvas,android.graphics.Rect,kotlin.Int,java.time.ZonedDateTime,kotlin.Int)` overridden.

Note hit detection in an editor for `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s created with this method is not supported.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds` | The complication's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds`. Its likely the bounding rect will be much larger than the complication and shouldn't directly be used for hit testing. |
| `complicationTapFilter: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication. |

### createEdgeComplicationSlotBuilder

```
@ComplicationExperimental
fun [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.BoundingArc,androidx.wear.watchface.ComplicationTapFilter))(
    id: Int,
    canvasComplicationFactory: CanvasComplicationFactory,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy,
    bounds: ComplicationSlotBounds,
    boundingArc: BoundingArc,
    complicationTapFilter: ComplicationTapFilter = object : ComplicationTapFilter {
                    override fun hitTest(
                        complicationSlot: ComplicationSlot,
                        screenBounds: Rect,
                        x: Int,
                        y: Int,
                        @Suppress("UNUSED_PARAMETER") includeMargins: Boolean
                    ) =
                        boundingArc.hitTest(
                            complicationSlot.computeBounds(screenBounds),
                            x.toFloat(),
                            y.toFloat()
                        )
                }
): ComplicationSlot.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Constructs a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotBoundsType#EDGE()`, whose contents are contained within `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Companion#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.BoundingArc,androidx.wear.watchface.ComplicationTapFilter)`.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds` | The complication's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds`. Its likely the bounding rect will have a much larger area than `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Companion#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.BoundingArc,androidx.wear.watchface.ComplicationTapFilter)` and shouldn't directly be used for hit testing. |
| `boundingArc: https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc` defining the geometry of the edge complication. |
| `complicationTapFilter: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter = object : ComplicationTapFilter { override fun hitTest( complicationSlot: ComplicationSlot, screenBounds: Rect, x: Int, y: Int, @Suppress("UNUSED_PARAMETER") includeMargins: Boolean ) = boundingArc.hitTest( complicationSlot.computeBounds(screenBounds), x.toFloat(), y.toFloat() ) }` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication. The default `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` uses `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Companion#createEdgeComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds,androidx.wear.watchface.BoundingArc,androidx.wear.watchface.ComplicationTapFilter)` to perform hit testing. |

### createRoundRectComplicationSlotBuilder

```
fun [createRoundRectComplicationSlotBuilder](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#createRoundRectComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds))(
    id: Int,
    canvasComplicationFactory: CanvasComplicationFactory,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy,
    bounds: ComplicationSlotBounds
): ComplicationSlot.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Constructs a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotBoundsType#ROUND_RECT()`. This is the most common type of complication. These can be tapped by the user to trigger the associated intent.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `canvasComplicationFactory: https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `supportedTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType>` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `defaultDataSourcePolicy: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds` | The complication's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds`. |

## Public functions

### computeBounds

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

```
fun [computeBounds](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean))(screen: Rect, applyMargins: Boolean = false): Rect
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Computes the bounds of the complication by converting the unitSquareBounds of the current complication type to pixels based on the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean)`'s dimensions.

| Parameters |
|---|---|
| `screen: https://developer.android.com/reference/android/graphics/Rect.html` | A `https://developer.android.com/reference/android/graphics/Rect.html` describing the dimensions of the screen. |
| `applyMargins: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | Whether or not the margins should be applied to the computed `https://developer.android.com/reference/android/graphics/Rect.html`. |

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#equals(kotlin.Any))(other: Any?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#hashCode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### isActiveAt

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

```
fun [isActiveAt](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#isActiveAt(java.time.Instant))(instant: Instant): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Whether or not the complication should be considered active and should be rendered at the specified time.

### render

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

```
@UiThread
fun [render](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#render(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))(
    canvas: Canvas,
    zonedDateTime: ZonedDateTime,
    renderParameters: RenderParameters
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Watch faces should use this method to render a complication. Note the system may call this.

| Parameters |
|---|---|
| `canvas: https://developer.android.com/reference/android/graphics/Canvas.html` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to render into |
| `zonedDateTime: https://developer.android.com/reference/java/time/ZonedDateTime.html` | The `https://developer.android.com/reference/java/time/ZonedDateTime.html` to render with |
| `renderParameters: https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters` | The current `https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters` |

### renderHighlightLayer

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

```
@UiThread
fun [renderHighlightLayer](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#renderHighlightLayer(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))(
    canvas: Canvas,
    zonedDateTime: ZonedDateTime,
    renderParameters: RenderParameters
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Watch faces should use this method to render non-fixed complicationSlots for any highlight layer pass. Note the system may call this.

| Parameters |
|---|---|
| `canvas: https://developer.android.com/reference/android/graphics/Canvas.html` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to render into |
| `zonedDateTime: https://developer.android.com/reference/java/time/ZonedDateTime.html` | The `https://developer.android.com/reference/java/time/ZonedDateTime.html` to render with |
| `renderParameters: https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters` | The current `https://developer.android.com/reference/kotlin/androidx/wear/watchface/RenderParameters` |

## Public properties

### accessibilityTraversalIndex

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

```
val accessibilityTraversalIndex: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

This is used to determine the order in which accessibility labels for the watch face are read to the user. Accessibility labels are automatically generated for the time and complicationSlots. See also `https://developer.android.com/reference/kotlin/androidx/wear/watchface/Renderer#additionalContentDescriptionLabels()`.

### boundsType

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

```
val boundsType: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotBoundsTypeIntDef` of the complication slot.

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### canvasComplicationFactory

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

```
val canvasComplicationFactory: CanvasComplicationFactory
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` used to generate a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` for rendering the complication. The factory allows us to decouple ComplicationSlot from potentially expensive asset loading.

### complicationData

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

```
val complicationData: StateFlow<ComplicationData>
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationData` associated with the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`. This defaults to `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/NoDataComplicationData`.

### complicationSlotBounds

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

```
val complicationSlotBounds: ComplicationSlotBounds
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The complication's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds` which are converted to pixels during rendering.

Note it's not allowed to change the bounds of a background complication because they are assumed to always cover the entire screen.

### configExtras

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

```
var configExtras: Bundle
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Extras to be merged into the Intent sent when invoking the complication data source chooser activity.

### defaultDataSourcePolicy

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

```
val defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` which defines the default complicationSlots providers selected when the user hasn't yet made a choice. See also `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#defaultDataSourceType()`.

### defaultDataSourceType

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

```
val defaultDataSourceType: ComplicationType
```

> [!CAUTION]
> **This property is deprecated.**   
> Use DefaultComplicationDataSourcePolicy.systemDataSourceFallbackDefaultType instead

The default `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType` to use alongside `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#defaultDataSourcePolicy()`.

### enabled

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

```
val enabled: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Whether or not the complication should be drawn and accept taps.

### fixedComplicationDataSource

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

```
val fixedComplicationDataSource: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Whether or not the complication data source is fixed (i.e. can't be changed by the user). This is useful for watch faces built around specific complications.

### id

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

```
val id: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The Watch Face's ID for the complication slot.

### initiallyEnabled

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

```
val initiallyEnabled: Boolean
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

At creation a complication slot is either enabled or disabled. This can be overridden by a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting` (see `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting.ComplicationSlotOverlay#enabled()`). Editors need to know the initial state of a complication slot to predict the effects of making a style change.

### nameResourceId

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

```
val nameResourceId: Int?
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The optional ID of string resource (or `null` if absent) to identify the complication slot on screen in an editor. These strings should be short (perhaps 10 characters max) E.g. complication slots named 'left' and 'right' might be shown by the editor in a list from which the user selects a complication slot for editing.

### renderer

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

```
val renderer: CanvasComplication
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplication` used to render the complication. This can't be used until after `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)` has completed.

### screenReaderNameResourceId

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

```
val screenReaderNameResourceId: Int?
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The optional ID of a string resource (or `null` if absent) for use by a watch face editor to identify the complication slot in a screen reader. While similar to `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot#nameResourceId()` this string can be longer and should be more descriptive. E.g. saying 'left complication' rather than just 'left'.

### supportedTypes

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

```
val supportedTypes: List<ComplicationType>
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### tapFilter

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

```
val tapFilter: ComplicationTapFilter
```

> [!CAUTION]
> **This property is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication slot.