# HeadlessWatchFaceClient

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/HeadlessWatchFaceClient.kt+class:androidx.wear.watchface.client.HeadlessWatchFaceClient) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***


```
public interface HeadlessWatchFaceClient extends AutoCloseable
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Controls a stateless remote headless watch face. This is mostly intended for use by watch face editor UIs which need to generate screenshots for various styling configurations without affecting the current watchface.

Note clients should call `https://developer.android.com/reference/java/lang/AutoCloseable.html#close()` when finished.

use Watch Face Format instead

## Summary

| ### Nested types |
|---|
| `public interface https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient.ClientDisconnectListener` **This interface is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/AnyThread [addClientDisconnectListener](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#addClientDisconnectListener(androidx.wear.watchface.client.HeadlessWatchFaceClient.ClientDisconnectListener,java.util.concurrent.Executor))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient.ClientDisconnectListener listener, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/concurrent/Executor.html executor )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `default static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient` | `[createFromBundle](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#createFromBundle(android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html bundle)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/ComplicationSlotState>` | `[getComplicationSlotsState](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getComplicationSlotsState())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html` | `[getPreviewReferenceInstant](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getPreviewReferenceInstant())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `default @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavors` | `[getUserStyleFlavors](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleFlavors())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSchema` | `[getUserStyleSchema](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleSchema())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `default @https://developer.android.com/reference/androidx/annotation/NonNull byte[]` | `[getUserStyleSchemaDigestHash](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleSchemaDigestHash())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract boolean` | `@https://developer.android.com/reference/androidx/annotation/AnyThread [isConnectionAlive](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#isConnectionAlive())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `default boolean` | `[isRenderWatchFaceToSurfaceSupported](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#isRenderWatchFaceToSurfaceSupported())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/AnyThread [removeClientDisconnectListener](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#removeClientDisconnectListener(androidx.wear.watchface.client.HeadlessWatchFaceClient.ClientDisconnectListener))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient.ClientDisconnectListener listener )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 27) [renderComplicationToBitmap](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#renderComplicationToBitmap(kotlin.Int,androidx.wear.watchface.RenderParameters,java.time.Instant,androidx.wear.watchface.complications.data.ComplicationData,androidx.wear.watchface.style.UserStyle))( int complicationSlotId, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html instant, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData complicationData, https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle userStyle )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi(value = 27) [renderWatchFaceToBitmap](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#renderWatchFaceToBitmap(androidx.wear.watchface.RenderParameters,java.time.Instant,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html instant, https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle userStyle, https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData> slotIdToComplicationData )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html` | `[toBundle](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#toBundle())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Inherited methods |
|---|
| From [java.lang.AutoCloseable](https://developer.android.com/reference/java/lang/AutoCloseable.html) |---|---| | `abstract void` | `[close](https://developer.android.com/reference/java/lang/AutoCloseable.html#close())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. | |

## Public methods

### addClientDisconnectListener

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

```
@AnyThread
abstract void [addClientDisconnectListener](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#addClientDisconnectListener(androidx.wear.watchface.client.HeadlessWatchFaceClient.ClientDisconnectListener,java.util.concurrent.Executor))(
    @NonNull HeadlessWatchFaceClient.ClientDisconnectListener listener,
    @NonNull Executor executor
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Registers a `https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient.ClientDisconnectListener`.

### createFromBundle

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

```
default static final @NonNull HeadlessWatchFaceClient [createFromBundle](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#createFromBundle(android.os.Bundle))(@NonNull Bundle bundle)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### getComplicationSlotsState

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

```
abstract @NonNull Map<@NonNull Integer, @NonNull ComplicationSlotState> [getComplicationSlotsState](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getComplicationSlotsState())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Map of `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` ids to `https://developer.android.com/reference/androidx/wear/watchface/client/ComplicationSlotState` for each `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` registered with the watch face's `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotsManager`. The ComplicationSlotState is based on the initial state of each `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` plus any overrides from the default style's `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSetting.ComplicationSlotsUserStyleSetting`. Because the style can't change, ComplicationSlotState is immutable for a headless watch face.

### getPreviewReferenceInstant

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

```
abstract @NonNull Instant [getPreviewReferenceInstant](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getPreviewReferenceInstant())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The `https://developer.android.com/reference/java/time/Instant.html` to use when rendering previews.

### getUserStyleFlavors

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
default @NonNull UserStyleFlavors [getUserStyleFlavors](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleFlavors())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Returns the watch face's `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleFlavors` if any.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-runtime-exception/index.html` | if the watch face threw an exception while trying to service the request or there was a communication problem with watch face process. |

### getUserStyleSchema

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

```
abstract @NonNull UserStyleSchema [getUserStyleSchema](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleSchema())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

The watch face's `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSchema`.

### getUserStyleSchemaDigestHash

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.1.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
default @NonNull byte[] [getUserStyleSchemaDigestHash](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#getUserStyleSchemaDigestHash())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

A SHA-1 `https://developer.android.com/reference/java/security/MessageDigest.html` hash of the `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyleSchema`. Note that for performance reasons where possible the resource id or url for `https://developer.android.com/reference/android/graphics/drawable/Icon.html`s in the schema are used rather than the image bytes. This means that this hash should be considered insensitive to changes to the contents of icons between APK versions, which the user should account for accordingly.

This gives the same result as calling UserStyleSchema.computeDigestHash on `https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#userStyleSchema()` but is slightly faster since less data is passed over AIDL.

### isConnectionAlive

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

```
@AnyThread
abstract boolean [isConnectionAlive](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#isConnectionAlive())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Returns true if the connection to the server side is alive.

### isRenderWatchFaceToSurfaceSupported

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
default boolean [isRenderWatchFaceToSurfaceSupported](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#isRenderWatchFaceToSurfaceSupported())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Whether or not the watch face supports renderWatchFaceToSurface.

### removeClientDisconnectListener

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

```
@AnyThread
abstract void [removeClientDisconnectListener](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#removeClientDisconnectListener(androidx.wear.watchface.client.HeadlessWatchFaceClient.ClientDisconnectListener))(
    @NonNull HeadlessWatchFaceClient.ClientDisconnectListener listener
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Removes a `https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient.ClientDisconnectListener` previously registered by `https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#addClientDisconnectListener(androidx.wear.watchface.client.HeadlessWatchFaceClient.ClientDisconnectListener,java.util.concurrent.Executor)`.

### renderComplicationToBitmap

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

```
@RequiresApi(value = 27)
abstract Bitmap [renderComplicationToBitmap](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#renderComplicationToBitmap(kotlin.Int,androidx.wear.watchface.RenderParameters,java.time.Instant,androidx.wear.watchface.complications.data.ComplicationData,androidx.wear.watchface.style.UserStyle))(
    int complicationSlotId,
    @NonNull RenderParameters renderParameters,
    @NonNull Instant instant,
    @NonNull ComplicationData complicationData,
    UserStyle userStyle
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Renders the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` to a shared memory backed `https://developer.android.com/reference/android/graphics/Bitmap.html` with the given settings. The complication will be rendered at the same scale as it would be when the watch face is full screen.

| Parameters |
|---|---|
| `int complicationSlotId` | The id of the complication to render |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters` | The `https://developer.android.com/reference/androidx/wear/watchface/RenderParameters` to draw with |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html instant` | The `https://developer.android.com/reference/java/time/Instant.html` to render with |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData complicationData` | the `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData` to render with |
| `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle userStyle` | Optional `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle` to render with, if null the default style is used |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | A shared memory backed `https://developer.android.com/reference/android/graphics/Bitmap.html` containing a screenshot of the watch face with the given settings, or `null` if `https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#renderComplicationToBitmap(kotlin.Int,androidx.wear.watchface.RenderParameters,java.time.Instant,androidx.wear.watchface.complications.data.ComplicationData,androidx.wear.watchface.style.UserStyle)` is unrecognized. |

### renderWatchFaceToBitmap

```
@RequiresApi(value = 27)
abstract @NonNull Bitmap [renderWatchFaceToBitmap](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#renderWatchFaceToBitmap(androidx.wear.watchface.RenderParameters,java.time.Instant,androidx.wear.watchface.style.UserStyle,kotlin.collections.Map))(
    @NonNull RenderParameters renderParameters,
    @NonNull Instant instant,
    UserStyle userStyle,
    Map<@NonNull Integer, @NonNull ComplicationData> slotIdToComplicationData
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Renders the watchface to a shared memory backed `https://developer.android.com/reference/android/graphics/Bitmap.html` with the given settings.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/RenderParameters renderParameters` | The `https://developer.android.com/reference/androidx/wear/watchface/RenderParameters` to draw with. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html instant` | The `https://developer.android.com/reference/java/time/Instant.html` to render with |
| `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle userStyle` | Optional `https://developer.android.com/reference/androidx/wear/watchface/style/UserStyle` to render with, if null the default style is used. |
| `https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Integer.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData> slotIdToComplicationData` | Map of `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` ids to `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationData` to render with, or if `null` `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` are not rendered. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html` | A shared memory backed `https://developer.android.com/reference/android/graphics/Bitmap.html` containing a screenshot of the watch face with the given settings. |

### toBundle

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

```
abstract @NonNull Bundle [toBundle](https://developer.android.com/reference/androidx/wear/watchface/client/HeadlessWatchFaceClient#toBundle())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Stores the underlying connection in a `https://developer.android.com/reference/android/os/Bundle.html`.