# WatchFaceService

Artifact: [androidx.wear.watchface:watchface](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/WatchFaceService.kt+class:androidx.wear.watchface.WatchFaceService) 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 class WatchFaceService : WallpaperService
```

<br />

|---|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context.html) |||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) ||||
|   |   | ↳ | [android.app.Service](https://developer.android.com/reference/android/app/Service.html) |||
|   |   |   | ↳ | [android.service.wallpaper.WallpaperService](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html) ||
|   |   |   |   | ↳ | [androidx.wear.watchface.WatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService) |

Known direct subclasses [ListenableWatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableWatchFaceService), [StatefulWatchFaceRuntimeService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/StatefulWatchFaceRuntimeService), [StatefulWatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/StatefulWatchFaceService), [WatchFaceRuntimeService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceRuntimeService)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableWatchFaceService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/StatefulWatchFaceRuntimeService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/StatefulWatchFaceService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceRuntimeService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

Known indirect subclasses [ListenableStatefulWatchFaceRuntimeService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableStatefulWatchFaceRuntimeService), [ListenableStatefulWatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableStatefulWatchFaceService), [ListenableWatchFaceRuntimeService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableWatchFaceRuntimeService)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableStatefulWatchFaceRuntimeService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableStatefulWatchFaceService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ListenableWatchFaceRuntimeService` | **This class is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

*** ** * ** ***

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

WatchFaceService and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace` are a pair of classes intended to handle much of the boilerplate needed to implement a watch face without being too opinionated. The suggested structure of a WatchFaceService based watch face is:

```kotlin
import androidx.wear.watchface.CanvasComplicationFactory
import androidx.wear.watchface.CanvasType
import androidx.wear.watchface.ComplicationSlot
import androidx.wear.watchface.ComplicationSlotsManager
import androidx.wear.watchface.Renderer
import androidx.wear.watchface.WatchFace
import androidx.wear.watchface.WatchFaceService
import androidx.wear.watchface.WatchFaceType
import androidx.wear.watchface.WatchState
import androidx.wear.watchface.complications.ComplicationSlotBounds
import androidx.wear.watchface.complications.DefaultComplicationDataSourcePolicy
import androidx.wear.watchface.complications.SystemDataSources
import androidx.wear.watchface.complications.data.ComplicationExperimental
import androidx.wear.watchface.complications.data.ComplicationType
import androidx.wear.watchface.complications.rendering.CanvasComplicationDrawable
import androidx.wear.watchface.complications.rendering.ComplicationDrawable
import androidx.wear.watchface.style.CurrentUserStyleRepository
import androidx.wear.watchface.style.UserStyleSchema
import androidx.wear.watchface.style.UserStyleSetting
import androidx.wear.watchface.style.UserStyleSetting.ListUserStyleSetting
import androidx.wear.watchface.style.UserStyleSetting.Option
import androidx.wear.watchface.style.WatchFaceLayer

class ExampleCanvasWatchFaceService : WatchFaceService() {
    override fun createUserStyleSchema() =
        UserStyleSchema(
            listOf(
                ListUserStyleSetting.Builder(
                        UserStyleSetting.Id(COLOR_STYLE_SETTING),
                        options =
                            listOf(
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(RED_STYLE),
                                        resources,
                                        R.string.colors_style_red,
                                        R.string.colors_style_red_screen_reader
                                    )
                                    .build(),
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(GREEN_STYLE),
                                        resources,
                                        R.string.colors_style_green,
                                        R.string.colors_style_green_screen_reader
                                    )
                                    .build(),
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(BLUE_STYLE),
                                        resources,
                                        R.string.colors_style_blue,
                                        R.string.colors_style_blue_screen_reader
                                    )
                                    .build()
                            ),
                        listOf(
                            WatchFaceLayer.BASE,
                            WatchFaceLayer.COMPLICATIONS,
                            WatchFaceLayer.COMPLICATIONS_OVERLAY
                        ),
                        resources,
                        R.string.colors_style_setting,
                        R.string.colors_style_setting_description
                    )
                    .build(),
                ListUserStyleSetting.Builder(
                        UserStyleSetting.Id(HAND_STYLE_SETTING),
                        options =
                            listOf(
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(CLASSIC_STYLE),
                                        resources,
                                        R.string.hand_style_classic,
                                        R.string.hand_style_classic_screen_reader
                                    )
                                    .build(),
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(MODERN_STYLE),
                                        resources,
                                        R.string.hand_style_modern,
                                        R.string.hand_style_modern_screen_reader
                                    )
                                    .build(),
                                ListUserStyleSetting.ListOption.Builder(
                                        Option.Id(GOTHIC_STYLE),
                                        resources,
                                        R.string.hand_style_gothic,
                                        R.string.hand_style_gothic_screen_reader
                                    )
                                    .build()
                            ),
                        listOf(WatchFaceLayer.COMPLICATIONS_OVERLAY),
                        resources,
                        R.string.hand_style_setting,
                        R.string.hand_style_setting_description
                    )
                    .build()
            )
        )

    @ComplicationExperimental
    override fun createComplicationSlotsManager(
        currentUserStyleRepository: CurrentUserStyleRepository
    ): ComplicationSlotsManager {
        val canvasComplicationFactory = CanvasComplicationFactory { watchState, listener ->
            CanvasComplicationDrawable(ComplicationDrawable(this), watchState, listener)
        }
        return ComplicationSlotsManager(
            listOf(
                ComplicationSlot.createRoundRectComplicationSlotBuilder(
                        /*id */ 0,
                        canvasComplicationFactory,
                        listOf(
                            ComplicationType.RANGED_VALUE,
                            ComplicationType.LONG_TEXT,
                            ComplicationType.SHORT_TEXT,
                            ComplicationType.MONOCHROMATIC_IMAGE,
                            ComplicationType.SMALL_IMAGE
                        ),
                        DefaultComplicationDataSourcePolicy(
                            SystemDataSources.DATA_SOURCE_DAY_OF_WEEK,
                            ComplicationType.SHORT_TEXT
                        ),
                        ComplicationSlotBounds(RectF(0.15625f, 0.1875f, 0.84375f, 0.3125f))
                    )
                    .build(),
                ComplicationSlot.createRoundRectComplicationSlotBuilder(
                        /*id */ 1,
                        canvasComplicationFactory,
                        listOf(
                            ComplicationType.RANGED_VALUE,
                            ComplicationType.LONG_TEXT,
                            ComplicationType.SHORT_TEXT,
                            ComplicationType.MONOCHROMATIC_IMAGE,
                            ComplicationType.SMALL_IMAGE
                        ),
                        DefaultComplicationDataSourcePolicy(
                            SystemDataSources.DATA_SOURCE_STEP_COUNT,
                            ComplicationType.SHORT_TEXT
                        ),
                        ComplicationSlotBounds(RectF(0.1f, 0.5625f, 0.35f, 0.8125f))
                    )
                    .build()
            ),
            currentUserStyleRepository
        )
    }

    inner class MySharedAssets : Renderer.SharedAssets {
        override fun onDestroy() {}
    }

    override suspend fun createWatchFace(
        surfaceHolder: SurfaceHolder,
        watchState: WatchState,
        complicationSlotsManager: ComplicationSlotsManager,
        currentUserStyleRepository: CurrentUserStyleRepository
    ) =
        WatchFace(
            WatchFaceType.ANALOG,
            object :
                Renderer.CanvasRenderer2<MySharedAssets>(
                    surfaceHolder,
                    currentUserStyleRepository,
                    watchState,
                    CanvasType.HARDWARE,
                    interactiveDrawModeUpdateDelayMillis = 16,
                    clearWithBackgroundTintBeforeRenderingHighlightLayer = true
                ) {
                init {
                    // Listen for user style changes.
                    CoroutineScope(Dispatchers.Main.immediate).launch {
                        currentUserStyleRepository.userStyle.collect {
                            // `userStyle` will contain two userStyle categories with options
                            // from the lists above. ..
                        }
                    }
                }

                override fun render(
                    canvas: Canvas,
                    bounds: Rect,
                    zonedDateTime: ZonedDateTime,
                    sharedAssets: MySharedAssets
                ) {
                    // ...
                }

                override fun renderHighlightLayer(
                    canvas: Canvas,
                    bounds: Rect,
                    zonedDateTime: ZonedDateTime,
                    sharedAssets: MySharedAssets
                ) {
                    canvas.drawColor(renderParameters.highlightLayer!!.backgroundTint)

                    // ...
                }

                override suspend fun createSharedAssets(): MySharedAssets {
                    // Insert resource loading here.
                    return MySharedAssets()
                }
            }
        )
}

return ExampleCanvasWatchFaceService()
```

Sub classes of WatchFaceService are expected to implement `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)` which is the factory for making `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace`s. If the watch faces uses complications then `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)` should be overridden. All `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s are assumed to be enumerated up upfront and passed as a collection into `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager`'s constructor which is returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)`.

WatchFaceServices are required to be stateless as multiple can be created in parallel. If per instance state is required please use `https://developer.android.com/reference/kotlin/androidx/wear/watchface/StatefulWatchFaceService`.

Watch face styling (color and visual look of watch face elements such as numeric fonts, watch hands and ticks, etc...) and companion editing is directly supported via `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSetting`. To enable support for styling override `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`.

WatchFaceService can expose pre-populated style presets by overriding `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleFlavors(androidx.wear.watchface.style.CurrentUserStyleRepository,androidx.wear.watchface.ComplicationSlotsManager)` or via XML (see below). Each presents represents separate style configured with `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyle` and complication slot policies configured with `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/DefaultComplicationDataSourcePolicy`. The system will only access flavors if metadata tag is present in manifest:

```kotlin
    <meta-data
      android:name="androidx.wear.watchface.FLAVORS_SUPPORTED"
      android:value="true" />
```

WatchFaces are initially constructed on a background thread before being used exclusively on the ui thread afterwards. There is a memory barrier between construction and rendering so no special threading primitives are required.

To aid debugging watch face animations, WatchFaceService allows you to speed up or slow down time, and to loop between two instants. This is controlled by MOCK_TIME_INTENT intents with a float extra called "androidx.wear.watchface.extra.MOCK_TIME_SPEED_MULTIPLIE" and to long extras called "androidx.wear.watchface.extra.MOCK_TIME_WRAPPING_MIN_TIME" and "androidx.wear.watchface.extra.MOCK_TIME_WRAPPING_MAX_TIME" (which are UTC time in milliseconds). If minTime is omitted or set to -1 then the current time is sampled as minTime.

E.g., to make time go twice as fast: adb shell am broadcast -a androidx.wear.watchface.MockTime   
--ef androidx.wear.watchface.extra.MOCK_TIME_SPEED_MULTIPLIER 2.0

To use the sample on watch face editor UI, import the wear:wear-watchface-editor-samples library and add the following into your watch face's AndroidManifest.xml:

```kotlin
<activity
  android:name="androidx.wear.watchface.editor.sample.WatchFaceConfigActivity"
  android:exported="true"
  android:label="Config"
  android:theme="@android:style/Theme.Translucent.NoTitleBar">
  <intent-filter>
    <action android:name="androidx.wear.watchface.editor.action.WATCH_FACE_EDITOR" />
    <category android:name=
        "com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
</activity>
```

To register a WatchFaceService with the system add a tag to the in your watch face's AndroidManifest.xml:

```kotlin
<service
  android:name=".MyWatchFaceServiceClass"
  android:exported="true"
  android:label="@string/watch_face_name"
  android:permission="android.permission.BIND_WALLPAPER">
  <intent-filter>
    <action android:name="android.service.wallpaper.WallpaperService" />
    <category android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
  </intent-filter>
  <meta-data
     android:name="com.google.android.wearable.watchface.preview"
     android:resource="@drawable/my_watch_preview" />
  <meta-data
    android:name="com.google.android.wearable.watchface.preview_circular"
    android:resource="@drawable/my_watch_circular_preview" />
  <meta-data
    android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
    android:value="androidx.wear.watchface.editor.action.WATCH_FACE_EDITOR"/>
  <meta-data
    android:name="android.service.wallpaper"
    android:resource="@xml/watch_face" />
  <meta-data
    android:name=
       "com.google.android.wearable.watchface.companionBuiltinConfigurationEnabled"
    android:value="true" />
</service>
```

Multiple watch faces can be defined in the same package, requiring multiple tags.

By default the system will only allow the user to create a single instance of the watch face. You can choose to allow the user to create multiple instances (each with their own styling and a distinct `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState#watchFaceInstanceId()`) by adding this meta-data to your watch face's manifest:

```kotlin
    <meta-data
      android:name="androidx.wear.watchface.MULTIPLE_INSTANCES_ALLOWED"
      android:value="true" />
```

A watch face can declare the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema`, `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavors` in XML. The main advantage is simplicity for the developer, however meta data queries (see androidx.wear.watchface.client.WatchFaceMetadataClient) are faster because they can be performed without having to bind to the WatchFaceService.

To use xml inflation, add an androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition meta date tag to your service:

```kotlin
    <meta-data
        android:name="androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition"
        android:resource="@xml/my_watchface_definition" />
```

And the linked xml/my_watchface_definition resource must contain a XmlWatchFace node. E.g.:

```kotlin
     <XmlWatchFace xmlns:android="http://schemas.android.com/apk/res/android"
             xmlns:app="http://schemas.android.com/apk/res-auto">
         <UserStyleSchema>
             <ListUserStyleSetting
                 android:icon="@drawable/time_style_icon"
                 app:affectedWatchFaceLayers="BASE|COMPLICATIONS|COMPLICATIONS_OVERLAY"
                 app:defaultOptionIndex="1"
                 app:description="@string/time_style_description"
                 app:displayName="@string/time_style_name"
                 app:id="TimeStyle">
                 <ListOption
                     android:icon="@drawable/time_style_minimal_icon"
                     app:displayName="@string/time_style_minimal_name"
                     app:id="minimal" />
                 <ListOption
                     android:icon="@drawable/time_style_seconds_icon"
                     app:displayName="@string/time_style_seconds_name"
                     app:id="seconds" />
             </ListUserStyleSetting>
        </UserStyleSchema>
        </ComplicationSlot>
             app:slotId="1"
             app:boundsType="ROUND_RECT"
             app:supportedTypes="SHORT_TEXT|RANGED_VALUE|SMALL_IMAGE"
             app:defaultDataSourceType="RANGED_VALUE"
             app:systemDataSourceFallback="DATA_SOURCE_WATCH_BATTERY">
             <ComplicationSlotBounds
                 app:left="0.3" app:top="0.7" app:right="0.7" app:bottom="0.9"/>
         </ComplicationSlot>
         <UserStyleFlavors>
             <UserStyleFlavor app:id="flavor1">
                 <StyleOption app:id="TimeStyle" app:value="minimal"/>
                 <ComplicationPolicy
                     app:slotId="1"
                     app:primaryDataSource="com.package/com.app"
                     app:primaryDataSourceDefaultType="SHORT_TEXT"
                     app:systemDataSourceFallback="DATA_SOURCE_DAY_AND_DATE"
                     app:systemDataSourceFallbackDefaultType="SHORT_TEXT"/>
             </UserStyleFlavor>
         </UserStyleFlavors>
    </XmlWatchFace>
```

If you use resources references to specify identifiers, they should be locale independent (i.e. translatable="false").

If you use XmlSchemaAndComplicationSlotsDefinition then you shouldn't override `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()` or `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)`. However if tags are defined then you must override `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getComplicationSlotInflationFactory()` in order to provide the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` and where necessary edge complication `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter`s.

Note the tag does not support configExtras because in general a `https://developer.android.com/reference/android/os/Bundle.html` can not be inflated from XML.

Note it is an error to define a XmlSchemaAndComplicationSlotsDefinition and not use it.

As of Wear OS 4, complications can provide data using dynamic values, that the platform evaluates continuously and sends the evaluated results to the watch face. Privileged watch faces that can utilize the unevaluated dynamic values, can include the privileged permission `com.google.wear.permission.GET_COMPLICATION_DYNAMIC_VALUE` in their manifest, which will tell the system to avoid pruning them from the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationData`, where they will show up in the relevant fields next to the evaluated values.

use Watch Face Format instead

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#MAX_CREATE_WATCHFACE_TIME_MILLIS() = 5000` **This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public constructors |
|---|
| `[WatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#WatchFaceService())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/android/os/Handler.html` | `[getBackgroundThreadHandler](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getBackgroundThreadHandler())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `https://developer.android.com/reference/android/os/Handler.html` | `[getUiThreadHandler](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getUiThreadHandler())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onConfigurationChanged](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#onConfigurationChanged(android.content.res.Configuration))(newConfig: https://developer.android.com/reference/android/content/res/Configuration.html)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final https://developer.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html` | `[onCreateEngine](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#onCreateEngine())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Protected functions |
|---|---|
| `open https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [createComplicationSlotsManager](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository))( currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavors` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [createUserStyleFlavors](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleFlavors(androidx.wear.watchface.style.CurrentUserStyleRepository,androidx.wear.watchface.ComplicationSlotsManager))( currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository, complicationSlotsManager: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [createUserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema())()` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `abstract suspend https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [createWatchFace](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository))( surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html, watchState: https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState, complicationSlotsManager: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager, currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/UiThread [dump](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#dump(java.io.FileDescriptor,java.io.PrintWriter,kotlin.Array))(fd: https://developer.android.com/reference/java/io/FileDescriptor.html, writer: https://developer.android.com/reference/java/io/PrintWriter.html, args: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotInflationFactory?` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [getComplicationSlotInflationFactory](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getComplicationSlotInflationFactory())()` **This function is deprecated.** Use the version with currentUserStyleRepository argument instead |
| `open https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotInflationFactory` | `@https://developer.android.com/reference/kotlin/androidx/annotation/WorkerThread [getComplicationSlotInflationFactory](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getComplicationSlotInflationFactory(androidx.wear.watchface.style.CurrentUserStyleRepository))( currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository )` **This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

### Inherited functions

From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindIsolatedService](https://developer.android.com/reference/android/content/Context.html#bindIsolatedService(android.content.Intent, android.content.Context.BindServiceFlags, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html,
instanceName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getColor](https://developer.android.com/reference/android/content/Context.html#getColor(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/res/ColorStateList.html` `[getColorStateList](https://developer.android.com/reference/android/content/Context.html#getColorStateList(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/graphics/drawable/Drawable.html?` `[getDrawable](https://developer.android.com/reference/android/content/Context.html#getDrawable(int))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `[getString](https://developer.android.com/reference/android/content/Context.html#getString(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `[getString](https://developer.android.com/reference/android/content/Context.html#getString(int, java.lang.Object...))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, vararg formatArgs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`T` `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> [getSystemService](https://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.Class&lt;T&gt;))(serviceClass: https://developer.android.com/reference/java/lang/Class.html<T>)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` `[getText](https://developer.android.com/reference/android/content/Context.html#getText(int))(resId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/res/TypedArray.html` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(int[]))(attrs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/res/TypedArray.html` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(int, int[]))(resid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, attrs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/res/TypedArray.html` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[]))(set: https://developer.android.com/reference/android/util/AttributeSet.html?, attrs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/res/TypedArray.html` `[obtainStyledAttributes](https://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[], int, int))(
set: https://developer.android.com/reference/android/util/AttributeSet.html?,
attrs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html,
defStyleAttr: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
defStyleRes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeSelfPermissionOnKill](https://developer.android.com/reference/android/content/Context.html#revokeSelfPermissionOnKill(java.lang.String))(permName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcastWithMultiplePermissions](https://developer.android.com/reference/android/content/Context.html#sendBroadcastWithMultiplePermissions(android.content.Intent, java.lang.String[]))(
intent: https://developer.android.com/reference/android/content/Intent.html,
receiverPermissions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
From [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindIsolatedService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
instanceName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags))(
service: https://developer.android.com/reference/android/content/Intent.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.ServiceConnection, int))(service: https://developer.android.com/reference/android/content/Intent.html, conn: https://developer.android.com/reference/android/content/ServiceConnection.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, android.content.Context.BindServiceFlags, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindService](https://developer.android.com/reference/android/content/ContextWrapper.html#bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection))(
service: https://developer.android.com/reference/android/content/Intent.html,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
executor: https://developer.android.com/reference/java/util/concurrent/Executor.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindServiceAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags, android.os.UserHandle))(
service: https://developer.android.com/reference/android/content/Intent.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html,
flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html,
user: https://developer.android.com/reference/android/os/UserHandle.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[bindServiceAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle))(
service: https://developer.android.com/reference/android/content/Intent.html,
conn: https://developer.android.com/reference/android/content/ServiceConnection.html,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
user: https://developer.android.com/reference/android/os/UserHandle.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` `[checkCallingOrSelfUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingOrSelfUriPermissions(java.util.List&lt;android.net.Uri&gt;, int))(uris: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/android/net/Uri.html>, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` `[checkCallingUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkCallingUriPermissions(java.util.List&lt;android.net.Uri&gt;, int))(uris: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/android/net/Uri.html>, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkContentUriPermissionFull](https://developer.android.com/reference/android/content/ContextWrapper.html#checkContentUriPermissionFull(android.net.Uri, int, int, int))(uri: https://developer.android.com/reference/android/net/Uri.html, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkPermission(java.lang.String, int, int))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkSelfPermission(java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, int, int, int))(uri: https://developer.android.com/reference/android/net/Uri.html, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[checkUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int))(
uri: https://developer.android.com/reference/android/net/Uri.html?,
readPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
writePermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` `[checkUriPermissions](https://developer.android.com/reference/android/content/ContextWrapper.html#checkUriPermissions(java.util.List&lt;android.net.Uri&gt;, int, int, int))(
uris: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/android/net/Uri.html>,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[clearWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#clearWallpaper())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createAttributionContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createAttributionContext(java.lang.String))(attributionTag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createConfigurationContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createConfigurationContext(android.content.res.Configuration))(overrideConfiguration: https://developer.android.com/reference/android/content/res/Configuration.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createContext(android.content.ContextParams))(contextParams: https://developer.android.com/reference/android/content/ContextParams.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createContextForSplit](https://developer.android.com/reference/android/content/ContextWrapper.html#createContextForSplit(java.lang.String))(splitName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createDeviceContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceContext(int))(deviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createDeviceProtectedStorageContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDeviceProtectedStorageContext())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createDisplayContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createDisplayContext(android.view.Display))(display: https://developer.android.com/reference/android/view/Display.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createPackageContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createPackageContext(java.lang.String, int))(packageName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createWindowContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(int, android.os.Bundle))(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Context.html` `[createWindowContext](https://developer.android.com/reference/android/content/ContextWrapper.html#createWindowContext(android.view.Display, int, android.os.Bundle))(display: https://developer.android.com/reference/android/view/Display.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` `[databaseList](https://developer.android.com/reference/android/content/ContextWrapper.html#databaseList())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteDatabase](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteDatabase(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteFile](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteFile(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[deleteSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper.html#deleteSharedPreferences(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingOrSelfPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfPermission(java.lang.String, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingOrSelfUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingOrSelfUriPermission(android.net.Uri, int, java.lang.String))(
uri: https://developer.android.com/reference/android/net/Uri.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingPermission(java.lang.String, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceCallingUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceCallingUriPermission(android.net.Uri, int, java.lang.String))(uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforcePermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforcePermission(java.lang.String, int, int, java.lang.String))(permission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, int, int, int, java.lang.String))(
uri: https://developer.android.com/reference/android/net/Uri.html,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[enforceUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#enforceUriPermission(android.net.Uri, java.lang.String, java.lang.String, int, int, int, java.lang.String))(
uri: https://developer.android.com/reference/android/net/Uri.html?,
readPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
writePermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
pid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
uid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` `[fileList](https://developer.android.com/reference/android/content/ContextWrapper.html#fileList())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/File.html` `[getDatabasePath](https://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/File.html` `[getDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getDir(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/File.html?` `[getExternalFilesDir](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDir(java.lang.String))(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html>` `[getExternalFilesDirs](https://developer.android.com/reference/android/content/ContextWrapper.html#getExternalFilesDirs(java.lang.String))(type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/File.html` `[getFileStreamPath](https://developer.android.com/reference/android/content/ContextWrapper.html#getFileStreamPath(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/SharedPreferences.html` `[getSharedPreferences](https://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` `[getSystemService](https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemService(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `[getSystemServiceName](https://developer.android.com/reference/android/content/ContextWrapper.html#getSystemServiceName(java.lang.Class&lt;?&gt;))(serviceClass: https://developer.android.com/reference/java/lang/Class.html<*>)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[grantUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#grantUriPermission(java.lang.String, android.net.Uri, int))(toPackage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[moveDatabaseFrom](https://developer.android.com/reference/android/content/ContextWrapper.html#moveDatabaseFrom(android.content.Context, java.lang.String))(sourceContext: https://developer.android.com/reference/android/content/Context.html, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[moveSharedPreferencesFrom](https://developer.android.com/reference/android/content/ContextWrapper.html#moveSharedPreferencesFrom(android.content.Context, java.lang.String))(sourceContext: https://developer.android.com/reference/android/content/Context.html, name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/FileInputStream.html` `[openFileInput](https://developer.android.com/reference/android/content/ContextWrapper.html#openFileInput(java.lang.String))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/java/io/FileOutputStream.html` `[openFileOutput](https://developer.android.com/reference/android/content/ContextWrapper.html#openFileOutput(java.lang.String, int))(name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory))(
name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html,
mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
factory: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html` `[openOrCreateDatabase](https://developer.android.com/reference/android/content/ContextWrapper.html#openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler))(
name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html,
mode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
factory: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html,
errorHandler: https://developer.android.com/reference/android/database/DatabaseErrorHandler.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `[peekWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#peekWallpaper())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[rebindService](https://developer.android.com/reference/android/content/ContextWrapper.html#rebindService(android.content.ServiceConnection, android.content.Context.BindServiceFlags))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html, flags: https://developer.android.com/reference/android/content/Context.BindServiceFlags.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[registerComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper.html#registerComponentCallbacks(android.content.ComponentCallbacks))(callback: https://developer.android.com/reference/android/content/ComponentCallbacks.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[registerDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper.html#registerDeviceIdChangeListener(java.util.concurrent.Executor, java.util.function.IntConsumer))(executor: https://developer.android.com/reference/java/util/concurrent/Executor.html, listener: https://developer.android.com/reference/java/util/function/IntConsumer.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Intent.html?` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter))(receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?, filter: https://developer.android.com/reference/android/content/IntentFilter.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Intent.html?` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, int))(
receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
filter: https://developer.android.com/reference/android/content/IntentFilter.html,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Intent.html?` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler))(
receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
filter: https://developer.android.com/reference/android/content/IntentFilter.html,
broadcastPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/Intent.html?` `[registerReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, java.lang.String, android.os.Handler, int))(
receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
filter: https://developer.android.com/reference/android/content/IntentFilter.html,
broadcastPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[removeStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[removeStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html, user: https://developer.android.com/reference/android/os/UserHandle.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeSelfPermissionsOnKill](https://developer.android.com/reference/android/content/ContextWrapper.html#revokeSelfPermissionsOnKill(java.util.Collection&lt;java.lang.String&gt;))(permissions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(android.net.Uri, int))(uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[revokeUriPermission](https://developer.android.com/reference/android/content/ContextWrapper.html#revokeUriPermission(java.lang.String, android.net.Uri, int))(targetPackage: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, uri: https://developer.android.com/reference/android/net/Uri.html, modeFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent, java.lang.String))(intent: https://developer.android.com/reference/android/content/Intent.html, receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcast(android.content.Intent, java.lang.String, android.os.Bundle))(intent: https://developer.android.com/reference/android/content/Intent.html, receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html, user: https://developer.android.com/reference/android/os/UserHandle.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String))(
intent: https://developer.android.com/reference/android/content/Intent.html,
user: https://developer.android.com/reference/android/os/UserHandle.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String))(intent: https://developer.android.com/reference/android/content/Intent.html, receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
options: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
options: https://developer.android.com/reference/android/os/Bundle.html?,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, java.lang.String, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
receiverAppOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcast(android.content.Intent, int, java.lang.String, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, java.lang.String, android.os.Bundle, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
receiverAppOp: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?,
options: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
user: https://developer.android.com/reference/android/os/UserHandle.html,
receiverPermission: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcast(android.content.Intent, android.os.Bundle))(intent: https://developer.android.com/reference/android/content/Intent.html, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle))(intent: https://developer.android.com/reference/android/content/Intent.html, user: https://developer.android.com/reference/android/os/UserHandle.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyOrderedBroadcast](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[sendStickyOrderedBroadcastAsUser](https://developer.android.com/reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/Intent.html,
user: https://developer.android.com/reference/android/os/UserHandle.html,
resultReceiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html?,
scheduler: https://developer.android.com/reference/android/os/Handler.html?,
initialCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
initialData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
initialExtras: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setTheme](https://developer.android.com/reference/android/content/ContextWrapper.html#setTheme(int))(resid: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap))(bitmap: https://developer.android.com/reference/android/graphics/Bitmap.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setWallpaper](https://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(java.io.InputStream))(data: https://developer.android.com/reference/java/io/InputStream.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivities](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(android.content.Intent[]))(intents: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/content/Intent.html>)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivities](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivities(android.content.Intent[], android.os.Bundle))(intents: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/content/Intent.html>, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivity](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startActivity](https://developer.android.com/reference/android/content/ContextWrapper.html#startActivity(android.content.Intent, android.os.Bundle))(intent: https://developer.android.com/reference/android/content/Intent.html, options: https://developer.android.com/reference/android/os/Bundle.html?)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/ComponentName.html?` `[startForegroundService](https://developer.android.com/reference/android/content/ContextWrapper.html#startForegroundService(android.content.Intent))(service: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[startInstrumentation](https://developer.android.com/reference/android/content/ContextWrapper.html#startInstrumentation(android.content.ComponentName, java.lang.String, android.os.Bundle))(
className: https://developer.android.com/reference/android/content/ComponentName.html,
profileFile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
arguments: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startIntentSender](https://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int))(
intent: https://developer.android.com/reference/android/content/IntentSender.html,
fillInIntent: https://developer.android.com/reference/android/content/Intent.html?,
flagsMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
flagsValues: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
extraFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startIntentSender](https://developer.android.com/reference/android/content/ContextWrapper.html#startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle))(
intent: https://developer.android.com/reference/android/content/IntentSender.html,
fillInIntent: https://developer.android.com/reference/android/content/Intent.html?,
flagsMask: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
flagsValues: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
extraFlags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
options: https://developer.android.com/reference/android/os/Bundle.html?
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/content/ComponentName.html?` `[startService](https://developer.android.com/reference/android/content/ContextWrapper.html#startService(android.content.Intent))(service: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[stopService](https://developer.android.com/reference/android/content/ContextWrapper.html#stopService(android.content.Intent))(name: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unbindService](https://developer.android.com/reference/android/content/ContextWrapper.html#unbindService(android.content.ServiceConnection))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterComponentCallbacks](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterComponentCallbacks(android.content.ComponentCallbacks))(callback: https://developer.android.com/reference/android/content/ComponentCallbacks.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterDeviceIdChangeListener](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterDeviceIdChangeListener(java.util.function.IntConsumer))(listener: https://developer.android.com/reference/java/util/function/IntConsumer.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[unregisterReceiver](https://developer.android.com/reference/android/content/ContextWrapper.html#unregisterReceiver(android.content.BroadcastReceiver))(receiver: https://developer.android.com/reference/android/content/BroadcastReceiver.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[updateServiceBindings](https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceBindings(java.util.Collection&lt;android.content.Context.UpdateBindingParams&gt;))(
params: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-collection/index.html<https://developer.android.com/reference/android/content/Context.UpdateBindingParams.html>
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[updateServiceGroup](https://developer.android.com/reference/android/content/ContextWrapper.html#updateServiceGroup(android.content.ServiceConnection, int, int))(conn: https://developer.android.com/reference/android/content/ServiceConnection.html, group: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, importance: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
From [android.app.Service](https://developer.android.com/reference/android/app/Service.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[attachBaseContext](https://developer.android.com/reference/android/app/Service.html#attachBaseContext(android.content.Context))(newBase: https://developer.android.com/reference/android/content/Context.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onLowMemory](https://developer.android.com/reference/android/app/Service.html#onLowMemory())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onRebind](https://developer.android.com/reference/android/app/Service.html#onRebind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onStart](https://developer.android.com/reference/android/app/Service.html#onStart(android.content.Intent, int))(intent: https://developer.android.com/reference/android/content/Intent.html, startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[onStartCommand](https://developer.android.com/reference/android/app/Service.html#onStartCommand(android.content.Intent, int, int))(intent: https://developer.android.com/reference/android/content/Intent.html, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTaskRemoved](https://developer.android.com/reference/android/app/Service.html#onTaskRemoved(android.content.Intent))(rootIntent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTimeout](https://developer.android.com/reference/android/app/Service.html#onTimeout(int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTimeout](https://developer.android.com/reference/android/app/Service.html#onTimeout(int, int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, fgsType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onTrimMemory](https://developer.android.com/reference/android/app/Service.html#onTrimMemory(int))(level: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[onUnbind](https://developer.android.com/reference/android/app/Service.html#onUnbind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startForeground](https://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification))(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, notification: https://developer.android.com/reference/android/app/Notification.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[startForeground](https://developer.android.com/reference/android/app/Service.html#startForeground(int, android.app.Notification, int))(
id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html,
notification: https://developer.android.com/reference/android/app/Notification.html,
foregroundServiceType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html
)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopForeground](https://developer.android.com/reference/android/app/Service.html#stopForeground(int))(notificationBehavior: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopForeground](https://developer.android.com/reference/android/app/Service.html#stopForeground(boolean))(removeNotification: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopSelf](https://developer.android.com/reference/android/app/Service.html#stopSelf())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[stopSelf](https://developer.android.com/reference/android/app/Service.html#stopSelf(int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[stopSelfResult](https://developer.android.com/reference/android/app/Service.html#stopSelfResult(int))(startId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
From [android.service.wallpaper.WallpaperService](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html) `https://developer.android.com/reference/android/os/IBinder.html?` `[onBind](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html#onBind(android.content.Intent))(intent: https://developer.android.com/reference/android/content/Intent.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onCreate](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html#onCreate())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://developer.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html?` `[onCreateEngine](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html#onCreateEngine(android.app.wallpaper.WallpaperDescription))(description: https://developer.android.com/reference/android/app/wallpaper/WallpaperDescription.html)`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[onDestroy](https://developer.android.com/reference/android/service/wallpaper/WallpaperService.html#onDestroy())()`

**This function is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.

### Inherited properties

From [android.content.Context](https://developer.android.com/reference/android/content/Context.html) `open https://developer.android.com/reference/android/content/Context.BindServiceFlags.html` `https://developer.android.com/reference/android/content/Context.html#updateableFlags`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
From [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) `open https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#applicationContext`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/pm/ApplicationInfo.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#applicationInfo`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/res/AssetManager.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#assets`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/AttributionSource.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#attributionSource`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://developer.android.com/reference/android/content/ContextWrapper.html#attributionTag`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/Context.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#baseContext`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#cacheDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/lang/ClassLoader.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#classLoader`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#codeCacheDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/ContentResolver.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#contentResolver`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#dataDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#deviceId`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/view/Display.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#display`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html?` `https://developer.android.com/reference/android/content/ContextWrapper.html#externalCacheDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html>` `https://developer.android.com/reference/android/content/ContextWrapper.html#externalCacheDirs`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html>` `https://developer.android.com/reference/android/content/ContextWrapper.html#externalMediaDirs`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#filesDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#isDeviceProtectedStorage`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#isRestricted`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#isUiContext`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/util/concurrent/Executor.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#mainExecutor`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/os/Looper.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#mainLooper`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#noBackupFilesDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/java/io/File.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#obbDir`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/io/File.html>` `https://developer.android.com/reference/android/content/ContextWrapper.html#obbDirs`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#opPackageName`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#packageCodePath`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/pm/PackageManager.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#packageManager`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#packageName`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#packageResourcePath`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/ContextParams.html?` `https://developer.android.com/reference/android/content/ContextWrapper.html#params`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/res/Resources.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#resources`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/content/res/Resources.Theme.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#theme`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://developer.android.com/reference/android/graphics/drawable/Drawable.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#wallpaper`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#wallpaperDesiredMinimumHeight`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/content/ContextWrapper.html#wallpaperDesiredMinimumWidth`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
From [android.app.Service](https://developer.android.com/reference/android/app/Service.html) `https://developer.android.com/reference/android/app/Application.html` `https://developer.android.com/reference/android/app/Service.html#application`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/android/app/Service.html#foregroundServiceType`

**This property is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead.

## Constants

### MAX_CREATE_WATCHFACE_TIME_MILLIS

```
const val MAX_CREATE_WATCHFACE_TIME_MILLIS = 5000: Int
```

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

The maximum permitted duration of `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`.

## Public constructors

### WatchFaceService

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)

```
[WatchFaceService](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#WatchFaceService())()
```

> [!CAUTION]
> **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

## Public functions

### getBackgroundThreadHandler

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 [getBackgroundThreadHandler](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getBackgroundThreadHandler())(): Handler
```

> [!CAUTION]
> **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

Returns the lazily constructed background thread `https://developer.android.com/reference/android/os/Handler.html`. During initialization `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`, `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)` and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)` are posted on this handler.

### getUiThreadHandler

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 [getUiThreadHandler](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getUiThreadHandler())(): Handler
```

> [!CAUTION]
> **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

Returns the ui thread `https://developer.android.com/reference/android/os/Handler.html`.

### onConfigurationChanged

```
open fun [onConfigurationChanged](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#onConfigurationChanged(android.content.res.Configuration))(newConfig: Configuration): Unit
```

> [!CAUTION]
> **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

### onCreateEngine

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)

```
final fun [onCreateEngine](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#onCreateEngine())(): WallpaperService.Engine
```

> [!CAUTION]
> **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

Creates an interactive engine for WallpaperService.

## Protected functions

### createComplicationSlotsManager

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)

```
@WorkerThread
protected open fun [createComplicationSlotsManager](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository))(
    currentUserStyleRepository: CurrentUserStyleRepository
): ComplicationSlotsManager
```

> [!CAUTION]
> **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

If the WatchFaceService's manifest doesn't define a androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition meta data tag then override this factory method to create a non-empty `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager`. This manager will be passed to `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleFlavors(androidx.wear.watchface.style.CurrentUserStyleRepository,androidx.wear.watchface.ComplicationSlotsManager)` and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`. This will be called from a background thread but the ComplicationSlotsManager should be accessed exclusively from the UiThread afterwards.

| Parameters |
|---|---|
| `currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` constructed using the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` to pass into `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`. |

### createUserStyleFlavors

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)

```
@WorkerThread
protected open fun [createUserStyleFlavors](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleFlavors(androidx.wear.watchface.style.CurrentUserStyleRepository,androidx.wear.watchface.ComplicationSlotsManager))(
    currentUserStyleRepository: CurrentUserStyleRepository,
    complicationSlotsManager: ComplicationSlotsManager
): UserStyleFlavors
```

> [!CAUTION]
> **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

If the WatchFaceService's manifest doesn't define a androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition meta data tag then override this factory method to create non-empty `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavors`. This is called on a background thread. The system reads the flavors once and changes may be ignored until the APK is updated. Metadata tag "androidx.wear.watchface.FLAVORS_SUPPORTED" should be added to let the system know the service supports flavors.

| Parameters |
|---|---|
| `currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` constructed using the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`. |
| `complicationSlotsManager: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)` |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavors` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleFlavors`, which is exposed to the system. |

### createUserStyleSchema

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)

```
@WorkerThread
protected open fun [createUserStyleSchema](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema())(): UserStyleSchema
```

> [!CAUTION]
> **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

If the WatchFaceService's manifest doesn't define an androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition meta data tag then override this factory method to create a non-empty `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema`. A `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` constructed with this schema will be passed to `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)`, `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleFlavors(androidx.wear.watchface.style.CurrentUserStyleRepository,androidx.wear.watchface.ComplicationSlotsManager)` and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`. This is called on a background thread.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` to create a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` with, which is passed to `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)` and `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`. |

### createWatchFace

```
@WorkerThread
protected abstract suspend fun [createWatchFace](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository))(
    surfaceHolder: SurfaceHolder,
    watchState: WatchState,
    complicationSlotsManager: ComplicationSlotsManager,
    currentUserStyleRepository: CurrentUserStyleRepository
): WatchFace
```

> [!CAUTION]
> **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

Override this factory method to create your WatchFaceImpl. This method will be called by the library on a background thread, if possible any expensive initialization should be done asynchronously. The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace` and its `https://developer.android.com/reference/kotlin/androidx/wear/watchface/Renderer` should be accessed exclusively from the UiThread afterwards. There is a memory barrier between construction and rendering so no special threading primitives are required.

Warning the system will likely time out waiting for watch face initialization if it takes longer than `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#MAX_CREATE_WATCHFACE_TIME_MILLIS()` milliseconds.

| Parameters |
|---|---|
| `surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html` | The `https://developer.android.com/reference/android/view/SurfaceHolder.html` to pass to the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/Renderer`'s constructor. |
| `watchState: https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchState` for the watch face. |
| `complicationSlotsManager: https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createComplicationSlotsManager(androidx.wear.watchface.style.CurrentUserStyleRepository)`. |
| `currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` constructed using the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace` | A `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFace` whose `https://developer.android.com/reference/kotlin/androidx/wear/watchface/Renderer` uses the provided `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createWatchFace(android.view.SurfaceHolder,androidx.wear.watchface.WatchState,androidx.wear.watchface.ComplicationSlotsManager,androidx.wear.watchface.style.CurrentUserStyleRepository)`. |

### dump

```
@UiThread
protected open fun [dump](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#dump(java.io.FileDescriptor,java.io.PrintWriter,kotlin.Array))(fd: FileDescriptor, writer: PrintWriter, args: Array<String>): Unit
```

> [!CAUTION]
> **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

### getComplicationSlotInflationFactory

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

```
@WorkerThread
protected open fun [getComplicationSlotInflationFactory](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getComplicationSlotInflationFactory())(): ComplicationSlotInflationFactory?
```

> [!CAUTION]
> **This function is deprecated.**   
> Use the version with currentUserStyleRepository argument instead, use this instead:
>
> ```kotlin
> getComplicationSlotInflationFactory(currentUserStyleRepository: CurrentUserStyleRepository)
> ```

Used when inflating `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s from XML (i.e the manifest contains androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition metadata) to provide a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotInflationFactory` which provides the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` and where necessary edge complication `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter`s needed for inflating `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s.

If an androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition metadata tag is defined for your WatchFaceService 's manifest, and your XML includes tags then you must override this method.

### getComplicationSlotInflationFactory

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)

```
@WorkerThread
protected open fun [getComplicationSlotInflationFactory](https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#getComplicationSlotInflationFactory(androidx.wear.watchface.style.CurrentUserStyleRepository))(
    currentUserStyleRepository: CurrentUserStyleRepository
): ComplicationSlotInflationFactory
```

> [!CAUTION]
> **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

Used when inflating `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s from XML (i.e the manifest contains androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition metadata) to provide a `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotInflationFactory` which provides the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/CanvasComplicationFactory` and where necessary edge complication `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationTapFilter`s needed for inflating `https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot`s.

If an androidx.wear.watchface.XmlSchemaAndComplicationSlotsDefinition metadata tag is defined for your WatchFaceService 's manifest, and your XML includes tags then you must override this method. A `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-not-implemented-error/index.html` exception will be thrown if you don't.

| Parameters |
|---|---|
| `currentUserStyleRepository: https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` | The `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/CurrentUserStyleRepository` constructed using the `https://developer.android.com/reference/kotlin/androidx/wear/watchface/style/UserStyleSchema` returned by `https://developer.android.com/reference/kotlin/androidx/wear/watchface/WatchFaceService#createUserStyleSchema()`. |