Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#inhmethods)

# WatchFaceSlot


`
public

final

class
WatchFaceSlot
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.services.watchfaces.watchfacepush.WatchFaceSlot |

<br />

*** ** * ** ***

A watch face slot represents a "place" in the Watch Face Push API where a client app can install
a watch face. It is created when the client invokes the `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager#addWatchFace(android.os.ParcelFileDescriptor,%20java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<com.google.wear.services.watchfaces.watchfacepush.WatchFaceSlot,com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.AddException>)`
method, and destroyed when the client invokes the `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFacePushManager#removeWatchFace(java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.lang.Void,com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.RemoveException>)`
method. Using the slot ID, the client can then update the watch face that was placed in that
slot. The number of slots for a given client app is limited by the platform. The number of slots
that are still available for a client app can be retrieved via the `https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/ListWatchFaceSlotsResponse#getAvailableSlotCount()` field.

## Summary

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#equals(java.lang.Object)(Object o) ` |
| ` List<String>` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#getMetaDataValues(java.lang.String)(String key) ` Returns all meta-data values of the watch face associated with this slot, by the given key. |
| ` String` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#getPackageName()() ` The package name of watch face that occupies the slot. |
| ` String` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#getSlotId()() ` The Slot ID, used to manage the watch face that is currently installed in the slot. |
| ` long` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#getVersionCode()() ` The version code of the watch face that occupies the slot. |
| ` int` | ` https://developer.android.com/reference/com/google/wear/services/watchfaces/watchfacepush/WatchFaceSlot#hashCode()() ` |

| ### 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 [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

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

<br />

<br />

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

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

### getMetaDataValues

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<String> getMetaDataValues (String key)
```

Returns all meta-data values of the watch face associated with this slot, by the given key.

<br />

| Parameters ||
|---|---|
| `key` | `String` <br /> |

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

### getPackageName

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getPackageName ()
```

The package name of watch face that occupies the slot.

<br />

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

### getSlotId

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getSlotId ()
```

The Slot ID, used to manage the watch face that is currently installed in the slot.

<br />

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

### getVersionCode

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getVersionCode ()
```

The version code of the watch face that occupies the slot.

<br />

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

### hashCode

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

<br />

<br />

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