# ComplicationSlotMetadata

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/WatchFaceMetadataClient.kt+class:androidx.wear.watchface.client.ComplicationSlotMetadata) 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)

*** ** * ** ***


```
class ComplicationSlotMetadata
```

<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

Static metadata for a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`.

use Watch Face Format instead

## Summary

| ### Public constructors |
|---|
| `[ComplicationSlotMetadata](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#ComplicationSlotMetadata(androidx.wear.watchface.complications.ComplicationSlotBounds,kotlin.Int,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,kotlin.Boolean,kotlin.Boolean,android.os.Bundle))( bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds?, boundsType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, 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, isInitiallyEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, fixedComplicationDataSource: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, complicationConfigExtras: https://developer.android.com/reference/android/os/Bundle.html )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `@https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationExperimental [ComplicationSlotMetadata](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#ComplicationSlotMetadata(androidx.wear.watchface.complications.ComplicationSlotBounds,kotlin.Int,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,kotlin.Boolean,kotlin.Boolean,android.os.Bundle,androidx.wear.watchface.BoundingArc))( bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds?, boundsType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, 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, isInitiallyEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, fixedComplicationDataSource: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, complicationConfigExtras: https://developer.android.com/reference/android/os/Bundle.html, boundingArc: https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc? )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc?` | `@https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationExperimental [getBoundingArc](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#getBoundingArc())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds?` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#bounds()` **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/client/ComplicationSlotMetadata#boundsType()` **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/client/ComplicationSlotMetadata#complicationConfigExtras()` **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/client/ComplicationSlotMetadata#defaultDataSourcePolicy()` **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/client/ComplicationSlotMetadata#fixedComplicationDataSource()` **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/client/ComplicationSlotMetadata#isInitiallyEnabled()` **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/client/ComplicationSlotMetadata#supportedTypes()` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### ComplicationSlotMetadata

```
[ComplicationSlotMetadata](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#ComplicationSlotMetadata(androidx.wear.watchface.complications.ComplicationSlotBounds,kotlin.Int,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,kotlin.Boolean,kotlin.Boolean,android.os.Bundle))(
    bounds: ComplicationSlotBounds?,
    boundsType: Int,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy,
    isInitiallyEnabled: Boolean,
    fixedComplicationDataSource: Boolean,
    complicationConfigExtras: Bundle
)
```

> [!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/client/ComplicationSlotMetadata`.

| Parameters |
|---|---|
| `bounds: https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds?` | The complication slot's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds`. Only non `null` for watch faces with a new enough . |
| `boundsType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | 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 /> |
| `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 list of `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType`s accepted by this complication slot. Used during complication data source selection, 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` which controls the initial complication data source when the watch face is first installed. |
| `isInitiallyEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | 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. |
| `fixedComplicationDataSource: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether or not the complication slot's complication data source is fixed (i.e. can't be changed by the user). This is useful for watch faces built around specific complication complication data sources. |
| `complicationConfigExtras: https://developer.android.com/reference/android/os/Bundle.html` | Extras to be merged into the Intent sent when invoking the complication data source chooser activity. |

### ComplicationSlotMetadata

```
@ComplicationExperimental
[ComplicationSlotMetadata](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#ComplicationSlotMetadata(androidx.wear.watchface.complications.ComplicationSlotBounds,kotlin.Int,kotlin.collections.List,androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,kotlin.Boolean,kotlin.Boolean,android.os.Bundle,androidx.wear.watchface.BoundingArc))(
    bounds: ComplicationSlotBounds?,
    boundsType: Int,
    supportedTypes: List<ComplicationType>,
    defaultDataSourcePolicy: DefaultComplicationDataSourcePolicy,
    isInitiallyEnabled: Boolean,
    fixedComplicationDataSource: Boolean,
    complicationConfigExtras: Bundle,
    boundingArc: BoundingArc?
)
```

> [!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

## Public functions

### getBoundingArc

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)

```
@ComplicationExperimental
fun [getBoundingArc](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/ComplicationSlotMetadata#getBoundingArc())(): BoundingArc?
```

> [!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

The optional `https://developer.android.com/reference/kotlin/androidx/wear/watchface/BoundingArc` for an edge complication if specified, or `null` otherwise.

## Public properties

### bounds

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 bounds: 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 slot's `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/ComplicationSlotBounds`. Only non `null` for watch faces with a new enough .

### boundsType

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 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 />

### complicationConfigExtras

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 complicationConfigExtras: 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.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 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 controls the initial complication data source when the watch face is first installed.

### fixedComplicationDataSource

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 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 slot's complication data source is fixed (i.e. can't be changed by the user). This is useful for watch faces built around specific complication complication data sources.

### isInitiallyEnabled

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 isInitiallyEnabled: 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.

### supportedTypes

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

The list of `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationType`s accepted by this complication slot. Used during complication data source selection, this list should be non-empty.