Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Nested Classes](https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#nestedclasses) \| [Methods](https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#inhmethods)

# ComplicationSlotConfig


`
public

final

class
ComplicationSlotConfig
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.services.complications.ComplicationSlotConfig |

<br />

*** ** * ** ***

Represents complication provider configuration for a given watch face slot.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig.Builder` Builder for `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig`. |

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#equals(java.lang.Object)(Object o) ` |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getDataType()() ` The type of complication data that should be provided. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getId()() ` The unique id of the complication. |
| ` ComponentName` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getProviderComponent()() ` The `https://developer.android.com/reference/android/content/ComponentName` of the `androidx.wear.watchface.complications.datasource.ComplicationDataSourceService` selected to supply `androidx.wear.watchface.complications.data.ComplicationData` for this complication. |
| ` https://developer.android.com/reference/com/google/wear/services/watchfaces/WatchFaceId` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getWatchFaceId()() ` The `https://developer.android.com/reference/com/google/wear/services/watchfaces/WatchFaceId` of the watch face, used to uniquely identify it. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getWatchFaceSlotId()() ` The slot id of the complication as provided by the watch face. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#hashCode()() ` |
| ` String` | ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#toString()() ` |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Public methods

### equals

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public boolean equals (Object o)
```

<br />

<br />

| Parameters ||
|---|---|
| `o` | `Object` <br /> |

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

### getDataType

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int getDataType ()
```

The type of complication data that should be provided.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: |

### getId

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int getId ()
```

The unique id of the complication. This is the id seen by providers. It is unique across all
complications.

This ID is not the same as the WatchFace's slot ID, and the WatchFace is not aware of this
ID.

<br />

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

### getProviderComponent

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public ComponentName getProviderComponent ()
```

The `https://developer.android.com/reference/android/content/ComponentName` of the `androidx.wear.watchface.complications.datasource.ComplicationDataSourceService` selected to
supply `androidx.wear.watchface.complications.data.ComplicationData` for this
complication.

Returns `null` if the slot is empty, i.e. `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig#getDataType()` is `NOT_CONFIGURED` or `EMPTY`.

<br />

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

### getWatchFaceId

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public WatchFaceId getWatchFaceId ()
```

The `https://developer.android.com/reference/com/google/wear/services/watchfaces/WatchFaceId` of the watch face, used to uniquely identify it.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/com/google/wear/services/watchfaces/WatchFaceId` | <br /> |

### getWatchFaceSlotId

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int getWatchFaceSlotId ()
```

The slot id of the complication as provided by the watch face.

<br />

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

### hashCode

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int hashCode ()
```

<br />

<br />

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

### toString

Added in [version 35.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public String toString ()
```

<br />

<br />

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