# EditorServiceClient

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

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/wear/watchface/client/EditorServiceClient "View this page in Java")


```
interface EditorServiceClient
```

<br />

*** ** * ** ***

| **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 [androidx.wear.watchface.editor.EditorSession](https://developer.android.com/reference/kotlin/androidx/wear/watchface/editor/EditorSession). This client can be reused to observe multiple editor sessions.

use Watch Face Format instead

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[addListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor))~~`(editorListener: `[EditorListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorListener)`, listenerExecutor: `[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html)`)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[closeEditor](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#closeEditor())~~`()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[removeListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#removeListener(androidx.wear.watchface.client.EditorListener))~~`(editorListener: `[EditorListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorListener)`)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                                                                     |

## Public functions

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

```
fun [addListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor))(editorListener: EditorListener, listenerExecutor: Executor): Unit
```
| **This function 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 [EditorState](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorState) which is sent when [androidx.wear.watchface.editor.EditorSession](https://developer.android.com/reference/kotlin/androidx/wear/watchface/editor/EditorSession) closes. The [EditorListener.onEditorStateChanged](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorListener#onEditorStateChanged(androidx.wear.watchface.client.EditorState)) callback is run on the specified [listenerExecutor](https://developer.android.com/reference/kotlin/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)  

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

```
fun [removeListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#removeListener(androidx.wear.watchface.client.EditorListener))(editorListener: EditorListener): Unit
```
| **This function 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 [EditorListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorListener) previously registered via [addListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/EditorServiceClient#addListener(androidx.wear.watchface.client.EditorListener,java.util.concurrent.Executor)).