# 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)

*** ** * ** ***

<br />

```
public final 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/androidx/wear/watchface/ComplicationSlotsManager`) but ComplicationSlots can be enabled or disabled via `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting`.

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

use Watch Face Format instead

## Summary

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html` | `[computeBounds](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html screen, boolean applyMargins)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot.Builder` | `[createBackgroundComplicationSlotBuilder](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#createBackgroundComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy))( int id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot.Builder` | `[createEdgeComplicationSlotBuilder](https://developer.android.com/reference/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))( int id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter complicationTapFilter )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot.Builder` | `@https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationExperimental [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/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))( int id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/BoundingArc boundingArc, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter complicationTapFilter )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot.Builder` | `[createRoundRectComplicationSlotBuilder](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#createRoundRectComplicationSlotBuilder(kotlin.Int,androidx.wear.watchface.CanvasComplicationFactory,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.ComplicationSlotBounds))( int id, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final int` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getAccessibilityTraversalIndex](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getAccessibilityTraversalIndex())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final int` | `[getBoundsType](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getBoundsType())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory` | `[getCanvasComplicationFactory](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getCanvasComplicationFactory())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData>` | `[getComplicationData](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getComplicationData())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getComplicationSlotBounds](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getComplicationSlotBounds())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html` | `[getConfigExtras](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getConfigExtras())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getDefaultDataSourcePolicy](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getDefaultDataSourcePolicy())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getDefaultDataSourceType](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getDefaultDataSourceType())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final int` | `[getId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getId())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getNameResourceId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getNameResourceId())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` | `[getRenderer](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getRenderer())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/annotation/UiThread [getScreenReaderNameResourceId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getScreenReaderNameResourceId())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType>` | `[getSupportedTypes](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getSupportedTypes())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter` | `[getTapFilter](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getTapFilter())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#hashCode())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[isActiveAt](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isActiveAt(java.time.Instant))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html instant)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `@https://developer.android.com/reference/androidx/annotation/UiThread [isEnabled](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isEnabled())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[isFixedComplicationDataSource](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isFixedComplicationDataSource())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[isInitiallyEnabled](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isInitiallyEnabled())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread [render](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#render(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/ZonedDateTime.html zonedDateTime, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final void` | `@https://developer.android.com/reference/androidx/annotation/UiThread [renderHighlightLayer](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#renderHighlightLayer(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/ZonedDateTime.html zonedDateTime, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final void` | `[setConfigExtras](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#setConfigExtras(android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html value)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public methods

### 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)

```
public final @NonNull Rect [computeBounds](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean))(@NonNull Rect screen, boolean applyMargins)
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot#computeBounds(android.graphics.Rect,kotlin.Boolean)`'s dimensions.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html screen` | A `https://developer.android.com/reference/android/graphics/Rect.html` describing the dimensions of the screen. |
| `boolean applyMargins` | Whether or not the margins should be applied to the computed `https://developer.android.com/reference/android/graphics/Rect.html`. |

### createBackgroundComplicationSlotBuilder

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

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bound type `https://developer.android.com/reference/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 |
|---|---|
| `int id` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory` | The `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy` | The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |

### createEdgeComplicationSlotBuilder

```
public static final @NonNull ComplicationSlot.Builder [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/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))(
    int id,
    @NonNull CanvasComplicationFactory canvasComplicationFactory,
    @NonNull List<@NonNull ComplicationType> supportedTypes,
    @NonNull DefaultComplicationDataSourcePolicy defaultDataSourcePolicy,
    @NonNull ComplicationSlotBounds bounds,
    @NonNull ComplicationTapFilter complicationTapFilter
)
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/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/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/androidx/wear/watchface/ComplicationSlot#renderer()` with `https://developer.android.com/reference/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/androidx/wear/watchface/ComplicationSlot`s created with this method is not supported.

| Parameters |
|---|---|
| `int id` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory` | The `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy` | The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds` | The complication's `https://developer.android.com/reference/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. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter complicationTapFilter` | The `https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication. |

### createEdgeComplicationSlotBuilder

```
@ComplicationExperimental
public static final @NonNull ComplicationSlot.Builder [createEdgeComplicationSlotBuilder](https://developer.android.com/reference/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))(
    int id,
    @NonNull CanvasComplicationFactory canvasComplicationFactory,
    @NonNull List<@NonNull ComplicationType> supportedTypes,
    @NonNull DefaultComplicationDataSourcePolicy defaultDataSourcePolicy,
    @NonNull ComplicationSlotBounds bounds,
    @NonNull BoundingArc boundingArc,
    @NonNull ComplicationTapFilter complicationTapFilter
)
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotBoundsType#EDGE()`, whose contents are contained within `https://developer.android.com/reference/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 |
|---|---|
| `int id` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory` | The `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy` | The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds` | The complication's `https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds`. Its likely the bounding rect will have a much larger area than `https://developer.android.com/reference/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. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/BoundingArc boundingArc` | The `https://developer.android.com/reference/androidx/wear/watchface/BoundingArc` defining the geometry of the edge complication. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter complicationTapFilter` | The `https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication. The default `https://developer.android.com/reference/androidx/wear/watchface/ComplicationTapFilter` uses `https://developer.android.com/reference/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

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

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot.Builder` for a complication with bounds type `https://developer.android.com/reference/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 |
|---|---|
| `int id` | The watch face's ID for this complication. Can be any integer but should be unique within the watch face. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory canvasComplicationFactory` | The `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplicationFactory` to supply the `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` to use for rendering. Note renderers should not be shared between complicationSlots. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType> supportedTypes` | The types of complication supported by this ComplicationSlot. Used during complication, this list should be non-empty. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy defaultDataSourcePolicy` | The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` used to select the initial complication data source when the watch is first installed. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds bounds` | The complication's `https://developer.android.com/reference/androidx/wear/watchface/complications/ComplicationSlotBounds`. |

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#equals(kotlin.Any))(Object other)
```

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

### getAccessibilityTraversalIndex

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
public final int [getAccessibilityTraversalIndex](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getAccessibilityTraversalIndex())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/Renderer#additionalContentDescriptionLabels()`.

### getBoundsType

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)

```
public final int [getBoundsType](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getBoundsType())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlotBoundsTypeIntDef` of the complication slot.

### getCanvasComplicationFactory

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)

```
public final @NonNull CanvasComplicationFactory [getCanvasComplicationFactory](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getCanvasComplicationFactory())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/CanvasComplicationFactory` used to generate a `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` for rendering the complication. The factory allows us to decouple ComplicationSlot from potentially expensive asset loading.

### getComplicationData

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)

```
public final @NonNull StateFlow<@NonNull ComplicationData> [getComplicationData](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getComplicationData())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/complications/data/ComplicationData` associated with the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`. This defaults to `https://developer.android.com/reference/androidx/wear/watchface/complications/data/NoDataComplicationData`.

### getComplicationSlotBounds

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
public final @NonNull ComplicationSlotBounds [getComplicationSlotBounds](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getComplicationSlotBounds())()
```

> [!CAUTION]
> **This method 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/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.

### getConfigExtras

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)

```
public final @NonNull Bundle [getConfigExtras](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getConfigExtras())()
```

> [!CAUTION]
> **This method 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.

### getDefaultDataSourcePolicy

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
public final @NonNull DefaultComplicationDataSourcePolicy [getDefaultDataSourcePolicy](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getDefaultDataSourcePolicy())()
```

> [!CAUTION]
> **This method 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/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/androidx/wear/watchface/ComplicationSlot#defaultDataSourceType()`.

### getDefaultDataSourceType

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)

```
@UiThread
public final @NonNull ComplicationType [getDefaultDataSourceType](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getDefaultDataSourceType())()
```

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

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

### getId

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)

```
public final int [getId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getId())()
```

> [!CAUTION]
> **This method 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.

### getNameResourceId

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)

```
@UiThread
public final Integer [getNameResourceId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getNameResourceId())()
```

> [!CAUTION]
> **This method 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.

### getRenderer

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)

```
public final @NonNull CanvasComplication [getRenderer](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getRenderer())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/CanvasComplication` used to render the complication. This can't be used until after `https://developer.android.com/reference/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)` has completed.

### getScreenReaderNameResourceId

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)

```
@UiThread
public final Integer [getScreenReaderNameResourceId](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getScreenReaderNameResourceId())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationSlot#nameResourceId()` this string can be longer and should be more descriptive. E.g. saying 'left complication' rather than just 'left'.

### getSupportedTypes

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)

```
public final @NonNull List<@NonNull ComplicationType> [getSupportedTypes](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getSupportedTypes())()
```

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

### getTapFilter

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)

```
public final @NonNull ComplicationTapFilter [getTapFilter](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#getTapFilter())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/ComplicationTapFilter` used to determine whether or not a tap hit the complication slot.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#hashCode())()
```

> [!CAUTION]
> **This method 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)

```
public final boolean [isActiveAt](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isActiveAt(java.time.Instant))(@NonNull Instant instant)
```

> [!CAUTION]
> **This method 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.

### isEnabled

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
public final boolean [isEnabled](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isEnabled())()
```

> [!CAUTION]
> **This method 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.

### isFixedComplicationDataSource

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)

```
public final boolean [isFixedComplicationDataSource](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isFixedComplicationDataSource())()
```

> [!CAUTION]
> **This method 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.

### isInitiallyEnabled

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)

```
public final boolean [isInitiallyEnabled](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#isInitiallyEnabled())()
```

> [!CAUTION]
> **This method 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/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting` (see `https://developer.android.com/reference/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.

### 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
public final void [render](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#render(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))(
    @NonNull Canvas canvas,
    @NonNull ZonedDateTime zonedDateTime,
    @NonNull RenderParameters renderParameters
)
```

> [!CAUTION]
> **This method 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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to render into |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/ZonedDateTime.html zonedDateTime` | The `https://developer.android.com/reference/java/time/ZonedDateTime.html` to render with |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters` | The current `https://developer.android.com/reference/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
public final void [renderHighlightLayer](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#renderHighlightLayer(android.graphics.Canvas,java.time.ZonedDateTime,androidx.wear.watchface.RenderParameters))(
    @NonNull Canvas canvas,
    @NonNull ZonedDateTime zonedDateTime,
    @NonNull RenderParameters renderParameters
)
```

> [!CAUTION]
> **This method 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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to render into |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/ZonedDateTime.html zonedDateTime` | The `https://developer.android.com/reference/java/time/ZonedDateTime.html` to render with |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters` | The current `https://developer.android.com/reference/androidx/wear/watchface/RenderParameters` |

### setConfigExtras

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)

```
public final void [setConfigExtras](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot#setConfigExtras(android.os.Bundle))(@NonNull Bundle value)
```

> [!CAUTION]
> **This method 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.