# WatchFacePushManager.WatchFaceDetails

Artifact: [androidx.wear.watchfacepush:watchfacepush](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchfacepush/WatchFacePush.kt+class:androidx.wear.watchfacepush.WatchFacePushManager.WatchFaceDetails) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

*** ** * ** ***


```
public final class WatchFacePushManager.WatchFaceDetails
```

<br />

*** ** * ** ***

Details about a watch face that is installed through this API. Once installed, a watch face gets assigned a "slot" that can be then updated with another watch face. Similarly, the watch face in the slot can be deleted, freeing the slot. Each calling app has a limited number of slots that can be utilized.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#WatchFaceDetails(kotlin.String,kotlin.Long,kotlin.String,kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html slotId, long versionCode, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html packageName, @https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>> getMetaDataFunc )` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>>` | `https://developer.android.com/reference/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#getMetaData(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Returns a function that, when invoked, returns the list of metadata values for the given key. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#getPackageName()()` The package name of the watch face defined in the watch face manifest file. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#getSlotId()()` The unique slot ID assigned to this watch face. |
| `final long` | `https://developer.android.com/reference/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#getVersionCode()()` The version code of the watch face defined in the watch face manifest file. |

## Public constructors

### WatchFaceDetails

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

```
public WatchFaceDetails(
    @NonNull String slotId,
    long versionCode,
    @NonNull String packageName,
    @NonNull Function1<@NonNull String, @NonNull List<@NonNull String>> getMetaDataFunc
)
```

## Public methods

### getMetaData

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

```
public final @NonNull Function0<@NonNull List<@NonNull String>> getMetaData(@NonNull String key)
```

Returns a function that, when invoked, returns the list of metadata values for the given key.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The key for the metadata to retrieve. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull Function0<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>>` | A function returning a list of metadata values. |

### getPackageName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

```
public final @NonNull String getPackageName()
```

The package name of the watch face defined in the watch face manifest file.

### getSlotId

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

```
public final @NonNull String getSlotId()
```

The unique slot ID assigned to this watch face. This ID is used to reference this watch face for subsequent operations like updating or removing.

### getVersionCode

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchfacepush#1.0.0)

```
public final long getVersionCode()
```

The version code of the watch face defined in the watch face manifest file.