# ComplicationProviderInfo

Summary:[Inherited Constants](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo#lfields)\|[Ctors](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo#inhmethods)  

# ComplicationProviderInfo

`
public


class
ComplicationProviderInfo
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


implements

`[Parcelable](http://developer.android.com/reference/android/os/Parcelable.html)`


`

|---|-----------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.complications.ComplicationProviderInfo |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use the[Jetpack Wear Watch Face](https://developer.android.com/jetpack/androidx/releases/wear-watchface)libraries instead.

Holder of details of a complication provider, for use by watch faces (for example, to show the current provider in settings). A[ProviderInfoRetriever](https://developer.android.com/reference/android/support/wearable/complications/ProviderInfoRetriever.html)can be used to obtain instances of this class for each of a watch face's complications.

## Summary

|                                                                                    ### Inherited constants                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface`android.os.Parcelable` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                                                                                                                     ### Fields                                                                                                                                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](http://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[ComplicationProviderInfo](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html)`>` | [CREATOR](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#CREATOR) <br />                   |
| ` public final `[String](http://developer.android.com/reference/java/lang/String.html)                                                                                                                                                                    | [appName](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#appName) <br />                   |
| ` public final int`                                                                                                                                                                                                                                       | [complicationType](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#complicationType) <br /> |
| ` public final `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)                                                                                                                                                        | [providerIcon](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#providerIcon) <br />         |
| ` public final `[String](http://developer.android.com/reference/java/lang/String.html)                                                                                                                                                                    | [providerName](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#providerName) <br />         |

|                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[ComplicationProviderInfo](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#ComplicationProviderInfo(java.lang.String,%20java.lang.String,%20android.graphics.drawable.Icon,%20int))`(`[String](http://developer.android.com/reference/java/lang/String.html)` appName, `[String](http://developer.android.com/reference/java/lang/String.html)` providerName, `[Icon](http://developer.android.com/reference/android/graphics/drawable/Icon.html)` providerIcon, int complicationType) ` |
| ` `[ComplicationProviderInfo](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#ComplicationProviderInfo(android.os.Parcel))`(`[Parcel](http://developer.android.com/reference/android/os/Parcel.html)` in) `                                                                                                                                                                                                                                                                                 |

|                                                                                                                                                                ### Public methods                                                                                                                                                                 ||
|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                    | ` `[describeContents](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#describeContents())`() `                                                                                                            |
| ` `[String](http://developer.android.com/reference/java/lang/String.html) | ` `[toString](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#toString())`() `                                                                                                                            |
| ` void`                                                                   | ` `[writeToParcel](https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderInfo.html#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](http://developer.android.com/reference/android/os/Parcel.html)` dest, int flags) ` |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||
| From interface` `[android.os.Parcelable](http://developer.android.com/reference/android/os/Parcelable.html)` ` |------------------|-------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` describeContents() `                                                                                      | | ` abstract void` | ` writeToParcel(`[Parcel](http://developer.android.com/reference/android/os/Parcel.html)` arg0, int arg1) ` | ||

## Fields

### CREATOR

```
public static final Creator<ComplicationProviderInfo> CREATOR
```

<br />

<br />

### appName

```
public final String appName
```

<br />

<br />

### complicationType

```
public final int complicationType
```

<br />

<br />

### providerIcon

```
public final Icon providerIcon
```

<br />

<br />

### providerName

```
public final String providerName
```

<br />

<br />

## Public constructors

### ComplicationProviderInfo

```
public ComplicationProviderInfo (String appName, 
                String providerName, 
                Icon providerIcon, 
                int complicationType)
```

<br />

<br />

|             Parameters              ||
|--------------------|-----------------|
| `appName`          | `String` <br /> |
| `providerName`     | `String` <br /> |
| `providerIcon`     | `Icon` <br />   |
| `complicationType` | `int` <br />    |

### ComplicationProviderInfo

```
public ComplicationProviderInfo (Parcel in)
```

<br />

<br />

|      Parameters       ||
|------|-----------------|
| `in` | `Parcel` <br /> |

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

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

### toString

```
public String toString ()
```

<br />

<br />

|                                    Returns                                     ||
|------------------------------------------------------------------------|--------|
| [String](http://developer.android.com/reference/java/lang/String.html) | <br /> |

### writeToParcel

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |