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

# ActiveComplicationConfig


`
public

final

class
ActiveComplicationConfig
`


`

extends Object


`

`


`

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

<br />

*** ** * ** ***

Encapsulates details about an active `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig`, including whether the
provider app considers the current watch face to be safe.

Each watch face can define a set of slots for each `androidx.wear.watchface.style.UserStyleSetting.ComplicationSlotsUserStyleSetting`. As a result,
only a subset of complication configs may be active at one point, based on which style setting is
selected.

## Summary

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/com/google/wear/services/complications/ActiveComplicationConfig#equals(java.lang.Object)(Object o) ` |
| ` https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig` | ` https://developer.android.com/reference/com/google/wear/services/complications/ActiveComplicationConfig#getConfig()() ` Returns the active `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig`. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ActiveComplicationConfig#getTargetWatchFaceSafety()() ` Returns whether this config is for a 'safe' watch face as defined by the `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in the data source's manifest. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/complications/ActiveComplicationConfig#hashCode()() ` |
| ` String` | ` https://developer.android.com/reference/com/google/wear/services/complications/ActiveComplicationConfig#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 /> |

### getConfig

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

```
public ComplicationSlotConfig getConfig ()
```

Returns the active `https://developer.android.com/reference/com/google/wear/services/complications/ComplicationSlotConfig`.

<br />

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

### getTargetWatchFaceSafety

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

```
public int getTargetWatchFaceSafety ()
```

Returns whether this config is for a 'safe' watch face as defined by the `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data in the data source's
manifest.

If the `ComplicationDataSourceService.METADATA_KEY_SAFE_WATCH_FACES` meta data is
not defined, or if the ComplicationDataSourceService does not have the privileged permission
`com.google.wear.permission.GET_IS_FOR_SAFE_WATCH_FACE`, then the return value will be
`TargetWatchFaceSafety.UNKNOWN`.

Watch Face Format watch faces are always considered `TargetWatchFaceSafety.SAFE`
because they have a trusted runtime.

See `https://developer.android.com/reference/androidx/wear/watchface/complications/datasource/ComplicationDataSourceService`
and `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety` for more information.

<br />

| Returns ||
|---|---|
| `int` | Value is either `0` or a combination of the following: - `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#UNKNOWN` - `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#SAFE` - `https://developer.android.com/reference/com/google/wear/services/complications/TargetWatchFaceSafety#UNSAFE` |

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