Summary: [Constants](https://developer.android.com/reference/android/support/wearable/companion/WatchFaceCompanion#constants) \| [Inherited Methods](https://developer.android.com/reference/android/support/wearable/companion/WatchFaceCompanion#inhmethods)

# WatchFaceCompanion


`
public

final

class
WatchFaceCompanion
`


`

extends http://developer.android.com/reference/java/lang/Object.html


`

`


`

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

<br />

*** ** * ** ***


**This class is deprecated.**   

Use methods provided by `androidx.wear.remote.interactions.WatchFaceConfigIntentHelper` in the [Jetpack Wear Remote Interactions](https://developer.android.com/jetpack/androidx/releases/wear) library
instead

Constants for use by watch face configuration activities.

To register a configuration activity for a watch face, add a `<meta-data>` entry to the
watch face component in its Android Manifest file with an intent action to be fired to start the
activity. The following meta-data will register the `com.example.watchface.CONFIG_DIGITAL`
action to be started when configuring a watch face on the wearable device:

```scdoc
 <meta-data
     android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
     android:value="com.example.watchface.CONFIG_DIGITAL" />
```

To register a configuration activity to be started on a companion phone, add the following
alternative meta-data entry to the watch face component:

```scdoc
 <meta-data
     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
     android:value="com.example.watchface.CONFIG_DIGITAL" />
```

The activity should have an intent filter which lists the action specified in the meta-data
block above, in addition to the two categories present in the following example:

```scdoc
 <activity android:name=".MyWatchFaceConfigActivity">
     <intent-filter>
         <action android:name="com.example.watchface.CONFIG_DIGITAL" />
         <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
         <category android:name="android.intent.category.DEFAULT" />
     </intent-filter>
 </activity>
```

For phone side configuration activities, substitute the category `com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION` for `com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION`.

## Summary

| ### Constants ||
|---|---|
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/companion/WatchFaceCompanion.html#EXTRA_PEER_ID` The key for `http://developer.android.com/reference/java/lang/String.html` extra specifying the ID of the currently connected device in the phone-side config activity launch `http://developer.android.com/reference/android/content/Intent.html`. |
| `http://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/android/support/wearable/companion/WatchFaceCompanion.html#EXTRA_WATCH_FACE_COMPONENT` The key for `http://developer.android.com/reference/java/lang/String.html` extra specifying a `http://developer.android.com/reference/android/content/ComponentName.html` of the watch face being configured in the config activity launch `http://developer.android.com/reference/android/content/Intent.html`. |

| ### Inherited methods |
|---|---|
| From class ` http://developer.android.com/reference/java/lang/Object.html ` |---|---| | ` http://developer.android.com/reference/java/lang/Object.html` | ` clone() ` | | ` boolean` | ` equals(http://developer.android.com/reference/java/lang/Object.html arg0) ` | | ` void` | ` finalize() ` | | ` final http://developer.android.com/reference/java/lang/Class.html<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` 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() ` | ||

## Constants

### EXTRA_PEER_ID

```
public static final String EXTRA_PEER_ID
```

The key for `http://developer.android.com/reference/java/lang/String.html` extra specifying the ID of the currently connected device in the
phone-side config activity launch `http://developer.android.com/reference/android/content/Intent.html`.

<br />

Constant Value:

"android.support.wearable.watchface.extra.PEER_ID"


### EXTRA_WATCH_FACE_COMPONENT

```
public static final String EXTRA_WATCH_FACE_COMPONENT
```

The key for `http://developer.android.com/reference/java/lang/String.html` extra specifying a `http://developer.android.com/reference/android/content/ComponentName.html` of the
watch face being configured in the config activity launch `http://developer.android.com/reference/android/content/Intent.html`.

<br />

Constant Value:

"android.support.wearable.watchface.extra.WATCH_FACE_COMPONENT"