# DefaultComplicationDataSourcePolicyAndType

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/WatchFaceControlClient.kt+class:androidx.wear.watchface.client.DefaultComplicationDataSourcePolicyAndType) 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)

*** ** * ** ***


```
public final class DefaultComplicationDataSourcePolicyAndType
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Use the WatchFaceMetadataClient instead.

A pair of `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` and `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType` describing the default state of a `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`.

## Summary

| ### Public constructors |
|---|
| `[DefaultComplicationDataSourcePolicyAndType](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#DefaultComplicationDataSourcePolicyAndType(androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.data.ComplicationType))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy policy, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType type )` **This method is deprecated.** Use the WatchFaceMetadataClient instead. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** Use the WatchFaceMetadataClient instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` | `[getPolicy](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#getPolicy())()` **This method is deprecated.** Use the WatchFaceMetadataClient instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType` | `[getType](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#getType())()` **This method is deprecated.** Use the WatchFaceMetadataClient instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#hashCode())()` **This method is deprecated.** Use the WatchFaceMetadataClient instead. |

## Public constructors

### DefaultComplicationDataSourcePolicyAndType

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)

```
public [DefaultComplicationDataSourcePolicyAndType](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#DefaultComplicationDataSourcePolicyAndType(androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy,androidx.wear.watchface.complications.data.ComplicationType))(
    @NonNull DefaultComplicationDataSourcePolicy policy,
    @NonNull ComplicationType type
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Use the WatchFaceMetadataClient instead.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy policy` | The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` for the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType type` | The default `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType` for the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`. |

## Public methods

### equals

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

> [!CAUTION]
> **This method is deprecated.**   
> Use the WatchFaceMetadataClient instead.

### getPolicy

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)

```
public final @NonNull DefaultComplicationDataSourcePolicy [getPolicy](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#getPolicy())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Use the WatchFaceMetadataClient instead.

The `https://developer.android.com/reference/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy` for the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`.

### getType

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)

```
public final @NonNull ComplicationType [getType](https://developer.android.com/reference/androidx/wear/watchface/client/DefaultComplicationDataSourcePolicyAndType#getType())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Use the WatchFaceMetadataClient instead.

The default `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationType` for the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`.

### hashCode

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

> [!CAUTION]
> **This method is deprecated.**   
> Use the WatchFaceMetadataClient instead.