# 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)

*** ** * ** ***


```
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/kotlin/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#WatchFaceDetails(kotlin.String,kotlin.Long,kotlin.String,kotlin.Function1)( slotId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, versionCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, packageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, getMetaDataFunc: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html> )` |

| ### Public functions |
|---|---|
| `() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#getMetaData(kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Returns a function that, when invoked, returns the list of metadata values for the given key. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#packageName()` The package name of the watch face defined in the watch face manifest file. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#slotId()` The unique slot ID assigned to this watch face. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchfacepush/WatchFacePushManager.WatchFaceDetails#versionCode()` 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)

```
WatchFaceDetails(
    slotId: String,
    versionCode: Long,
    packageName: String,
    getMetaDataFunc: (String) -> List<String>
)
```

## Public functions

### getMetaData

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

```
fun getMetaData(key: String): () -> List<String>
```

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

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key for the metadata to retrieve. |

| Returns |
|---|---|
| `() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | A function returning a list of metadata values. |

## Public properties

### packageName

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

```
val packageName: String
```

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

### slotId

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

```
val slotId: String
```

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.

### versionCode

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

```
val versionCode: Long
```

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