# EditorServiceClient

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/EditorServiceClient.kt+class:androidx.wear.watchface.client.EditorServiceClient) 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 EditorServiceClient
```

<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

Client for the watchface editor service, which observes `https://developer.android.com/reference/androidx/wear/watchface/editor/EditorSession`. This client can be reused to observe multiple editor sessions.

use Watch Face Format instead

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[addListener](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor))( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/EditorListener editorListener, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/concurrent/Executor.html listenerExecutor )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract void` | `[closeEditor](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#closeEditor())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract void` | `[removeListener](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#removeListener(androidx.wear.watchface.client.EditorListener))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/client/EditorListener editorListener)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public methods

### addListener

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 void [addListener](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor))(
    @NonNull EditorListener editorListener,
    @NonNull Executor listenerExecutor
)
```

> [!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

Starts listening for `https://developer.android.com/reference/androidx/wear/watchface/client/EditorState` which is sent when `https://developer.android.com/reference/androidx/wear/watchface/editor/EditorSession` closes. The `https://developer.android.com/reference/androidx/wear/watchface/client/EditorListener#onEditorStateChanged(androidx.wear.watchface.client.EditorState)` callback is run on the specified `https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor)`.

### closeEditor

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 void [closeEditor](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#closeEditor())()
```

> [!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

Instructs any open editor to close.

### removeListener

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 void [removeListener](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#removeListener(androidx.wear.watchface.client.EditorListener))(@NonNull EditorListener editorListener)
```

> [!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

Unregisters an `https://developer.android.com/reference/androidx/wear/watchface/client/EditorListener` previously registered via `https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor)`.