ListenableStatefulWatchFaceRuntimeService


public abstract class ListenableStatefulWatchFaceRuntimeService<Extra extends Object> extends StatefulWatchFaceRuntimeService


ListenableFuture-based compatibility wrapper around WatchFaceRuntimeService's suspending WatchFaceService.createWatchFace.

ListenableWatchFaceRuntimeService is required to be stateless as multiple can be created in parallel. ListenableStatefulWatchFaceRuntimeService allows for metadata to be associated with watch faces on a per instance basis. This state is created by createExtra and is passed into other methods.

use Watch Face Format instead

Summary

Public constructors

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

Protected methods

final @NonNull WatchFace
createWatchFace(
    @NonNull SurfaceHolder surfaceHolder,
    @NonNull WatchState watchState,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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

abstract @NonNull ListenableFuture<@NonNull WatchFace>
createWatchFaceFutureAsync(
    @NonNull SurfaceHolder surfaceHolder,
    @NonNull WatchState watchState,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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

Inherited methods

From android.content.Context
boolean

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

final int
getColor(int p0)

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

final @NonNull ColorStateList

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

final @Nullable Drawable
getDrawable(int p0)

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

final @NonNull String
getString(int p0)

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

final @NonNull String
getString(int p0, @NonNull Object p1)

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

final @NonNull T
<T extends Object> getSystemService(@NonNull Class<@NonNull T> p0)

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

final @NonNull CharSequence
getText(int p0)

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

final @NonNull TypedArray

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

final @NonNull TypedArray

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

final @NonNull TypedArray
obtainStyledAttributes(int p0, @NonNull int[] p1)

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

final @NonNull TypedArray
obtainStyledAttributes(
    @Nullable AttributeSet p0,
    @NonNull int[] p1,
    int p2,
    int p3
)

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

void

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

void
sendBroadcastWithMultiplePermissions(
    @NonNull Intent p0,
    @NonNull String[] p1
)

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

From android.content.ContextWrapper
boolean
bindIsolatedService(
    @NonNull Intent p0,
    int p1,
    @NonNull String p2,
    @NonNull Executor p3,
    @NonNull ServiceConnection p4
)

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

boolean

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

boolean

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

boolean

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

boolean
bindService(
    @NonNull Intent p0,
    int p1,
    @NonNull Executor p2,
    @NonNull ServiceConnection p3
)

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

boolean

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

boolean
bindServiceAsUser(
    @NonNull Intent p0,
    @NonNull ServiceConnection p1,
    int p2,
    @NonNull UserHandle p3
)

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

int

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

int

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

@NonNull int[]

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

int

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

int

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

@NonNull int[]

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

int
checkContentUriPermissionFull(@NonNull Uri p0, int p1, int p2, int p3)

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

int
checkPermission(@NonNull String p0, int p1, int p2)

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

int

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

int
checkUriPermission(@NonNull Uri p0, int p1, int p2, int p3)

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

int
checkUriPermission(
    @Nullable Uri p0,
    @Nullable String p1,
    @Nullable String p2,
    int p3,
    int p4,
    int p5
)

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

@NonNull int[]
checkUriPermissions(@NonNull List<@NonNull Uri> p0, int p1, int p2, int p3)

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

void

This method is deprecated. Deprecated in Java

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull Context

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

@NonNull String[]

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

boolean

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

boolean

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

boolean

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

void

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

void
enforceCallingOrSelfUriPermission(
    @NonNull Uri p0,
    int p1,
    @NonNull String p2
)

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

void

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

void

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

void
enforcePermission(@NonNull String p0, int p1, int p2, @Nullable String p3)

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

void
enforceUriPermission(
    @NonNull Uri p0,
    int p1,
    int p2,
    int p3,
    @NonNull String p4
)

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

void
enforceUriPermission(
    @Nullable Uri p0,
    @Nullable String p1,
    @Nullable String p2,
    int p3,
    int p4,
    int p5,
    @Nullable String p6
)

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

@NonNull String[]

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

@NonNull Context

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

@NonNull ApplicationInfo

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

@NonNull AssetManager

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

@NonNull AttributionSource

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

@Nullable String

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

@NonNull Context

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

@NonNull File

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

@NonNull ClassLoader

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

@NonNull File

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

@NonNull ContentResolver

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

@NonNull File

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

@NonNull File

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

int

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

@NonNull File
getDir(@NonNull String p0, int p1)

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

@Nullable Display

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

@Nullable File

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

@NonNull File[]

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

@Nullable File

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

@NonNull File[]

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

@NonNull File[]

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

@NonNull File

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

@NonNull File

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

@NonNull Executor

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

@NonNull Looper

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

@NonNull File

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

@NonNull File

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

@NonNull File[]

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

@NonNull String

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

@NonNull String

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

@NonNull PackageManager

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

@NonNull String

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

@NonNull String

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

@Nullable ContextParams

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

@NonNull Resources

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

@NonNull SharedPreferences

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

@NonNull Object

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

String

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

@NonNull Resources.Theme

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

@NonNull Drawable

This method is deprecated. Deprecated in Java

int

This method is deprecated. Deprecated in Java

int

This method is deprecated. Deprecated in Java

void

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

boolean

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

boolean

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

boolean

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

boolean

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

boolean

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

@NonNull FileInputStream

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

@NonNull FileOutputStream
openFileOutput(@NonNull String p0, int p1)

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

@NonNull SQLiteDatabase
openOrCreateDatabase(
    @NonNull String p0,
    int p1,
    @NonNull SQLiteDatabase.CursorFactory p2
)

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

@NonNull SQLiteDatabase

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

@NonNull Drawable

This method is deprecated. Deprecated in Java

void

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

void

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

Intent

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

Intent
registerReceiver(
    @Nullable BroadcastReceiver p0,
    @NonNull IntentFilter p1,
    int p2
)

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

Intent
registerReceiver(
    @Nullable BroadcastReceiver p0,
    @NonNull IntentFilter p1,
    @Nullable String p2,
    @Nullable Handler p3
)

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

Intent
registerReceiver(
    @Nullable BroadcastReceiver p0,
    @NonNull IntentFilter p1,
    @Nullable String p2,
    @Nullable Handler p3,
    int p4
)

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

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

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

void

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

void

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

void

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

void

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

void

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

void

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

void

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

void

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

void
sendOrderedBroadcast(
    @NonNull Intent p0,
    @Nullable String p1,
    @Nullable Bundle p2
)

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

void
sendOrderedBroadcast(
    @NonNull Intent p0,
    @Nullable String p1,
    @Nullable BroadcastReceiver p2,
    @Nullable Handler p3,
    int p4,
    @Nullable String p5,
    @Nullable Bundle p6
)

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

void
sendOrderedBroadcast(
    @NonNull Intent p0,
    @Nullable String p1,
    @Nullable Bundle p2,
    @Nullable BroadcastReceiver p3,
    @Nullable Handler p4,
    int p5,
    @Nullable String p6,
    @Nullable Bundle p7
)

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

void
sendOrderedBroadcast(
    @NonNull Intent p0,
    @Nullable String p1,
    @Nullable String p2,
    @Nullable BroadcastReceiver p3,
    @Nullable Handler p4,
    int p5,
    @Nullable String p6,
    @Nullable Bundle p7
)

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

void
sendOrderedBroadcast(
    @NonNull Intent p0,
    int p1,
    @Nullable String p2,
    @Nullable String p3,
    @Nullable BroadcastReceiver p4,
    @Nullable Handler p5,
    @Nullable String p6,
    @Nullable Bundle p7,
    @Nullable Bundle p8
)

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

void
sendOrderedBroadcastAsUser(
    @NonNull Intent p0,
    @NonNull UserHandle p1,
    @Nullable String p2,
    @Nullable BroadcastReceiver p3,
    @Nullable Handler p4,
    int p5,
    @Nullable String p6,
    @Nullable Bundle p7
)

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

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void
sendStickyOrderedBroadcast(
    @NonNull Intent p0,
    @Nullable BroadcastReceiver p1,
    @Nullable Handler p2,
    int p3,
    @Nullable String p4,
    @Nullable Bundle p5
)

This method is deprecated. Deprecated in Java

void
sendStickyOrderedBroadcastAsUser(
    @NonNull Intent p0,
    @NonNull UserHandle p1,
    @Nullable BroadcastReceiver p2,
    @Nullable Handler p3,
    int p4,
    @Nullable String p5,
    @Nullable Bundle p6
)

This method is deprecated. Deprecated in Java

void
setTheme(int p0)

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

void

This method is deprecated. Deprecated in Java

void

This method is deprecated. Deprecated in Java

void
startActivities(@NonNull Intent[] p0)

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

void
startActivities(@NonNull Intent[] p0, @Nullable Bundle p1)

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

void

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

void

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

@Nullable ComponentName

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

boolean
startInstrumentation(
    @NonNull ComponentName p0,
    @Nullable String p1,
    @Nullable Bundle p2
)

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

void
startIntentSender(
    @NonNull IntentSender p0,
    @Nullable Intent p1,
    int p2,
    int p3,
    int p4
)

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

void
startIntentSender(
    @NonNull IntentSender p0,
    @Nullable Intent p1,
    int p2,
    int p3,
    int p4,
    @Nullable Bundle p5
)

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

@Nullable ComponentName

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

boolean

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

void

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

void

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

void

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

void

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

void
updateServiceGroup(@NonNull ServiceConnection p0, int p1, int p2)

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

From android.app.Service
void

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

final @NonNull Application

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

final int

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

void

This method is deprecated.

void

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

void
onStart(@NonNull Intent p0, int p1)

This method is deprecated. Deprecated in Java

int
onStartCommand(@NonNull Intent p0, int p1, int p2)

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

void

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

void
onTimeout(int p0)

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

void
onTimeout(int p0, int p1)

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

void
onTrimMemory(int p0)

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

boolean

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

final void

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

final void
startForeground(int p0, @NonNull Notification p1, int p2)

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

final void
stopForeground(boolean p0)

This method is deprecated. Deprecated in Java

final void

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

final void

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

final void
stopSelf(int p0)

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

final boolean

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

From androidx.wear.watchface.StatefulWatchFaceRuntimeService
final @NonNull ComplicationSlotsManager

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

abstract @NonNull ComplicationSlotsManager
@WorkerThread
createComplicationSlotsManager(
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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

abstract @NonNull Extra

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

final @NonNull UserStyleFlavors
createUserStyleFlavors(
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull ComplicationSlotsManager complicationSlotsManager
)

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

abstract @NonNull UserStyleFlavors
@WorkerThread
createUserStyleFlavors(
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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

final @NonNull UserStyleSchema

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

abstract @NonNull UserStyleSchema
@WorkerThread
createUserStyleSchema(
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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

final @NonNull WatchFace
createWatchFace(
    @NonNull SurfaceHolder surfaceHolder,
    @NonNull WatchState watchState,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull CurrentUserStyleRepository currentUserStyleRepository
)

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

From android.service.wallpaper.WallpaperService
final IBinder

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

void

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

void

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

From androidx.wear.watchface.WatchFaceService
void
@UiThread
dump(
    @NonNull FileDescriptor fd,
    @NonNull PrintWriter writer,
    @NonNull String[] args
)

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

final @NonNull Handler

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

ComplicationSlotInflationFactory

This method is deprecated. Use the version with currentUserStyleRepository argument instead

@NonNull ComplicationSlotInflationFactory

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

final @NonNull Handler

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

void

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

final @NonNull WallpaperService.Engine

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

Public constructors

ListenableStatefulWatchFaceRuntimeService

public <Extra extends Object> ListenableStatefulWatchFaceRuntimeService()

Protected methods

createWatchFace

protected final @NonNull WatchFace createWatchFace(
    @NonNull SurfaceHolder surfaceHolder,
    @NonNull WatchState watchState,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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 WatchFace and its 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 WatchFaceService.MAX_CREATE_WATCHFACE_TIME_MILLIS milliseconds.

Parameters
@NonNull SurfaceHolder surfaceHolder

The SurfaceHolder to pass to the Renderer's constructor.

@NonNull WatchState watchState

The WatchState for the watch face.

@NonNull ComplicationSlotsManager complicationSlotsManager

The ComplicationSlotsManager returned by createComplicationSlotsManager.

@NonNull CurrentUserStyleRepository currentUserStyleRepository

The CurrentUserStyleRepository constructed using the UserStyleSchema returned by createUserStyleSchema.

@NonNull String resourceOnlyWatchFacePackageName

The android package from which the watch face definition should be loaded.

@NonNull Extra extra

The object returned by createExtra.

Returns
@NonNull WatchFace

A WatchFace whose Renderer uses the provided surfaceHolder.

createWatchFaceFutureAsync

Added in 1.3.0-alpha06
Deprecated in 1.3.0-alpha06
protected abstract @NonNull ListenableFuture<@NonNull WatchFacecreateWatchFaceFutureAsync(
    @NonNull SurfaceHolder surfaceHolder,
    @NonNull WatchState watchState,
    @NonNull ComplicationSlotsManager complicationSlotsManager,
    @NonNull CurrentUserStyleRepository currentUserStyleRepository,
    @NonNull String resourceOnlyWatchFacePackageName,
    @NonNull Extra extra
)

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 WatchFace and its 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 MAX_CREATE_WATCHFACE_TIME_MILLIS milliseconds.

Note cancellation of the returned future is not supported.

Parameters
@NonNull SurfaceHolder surfaceHolder

The SurfaceHolder to pass to the Renderer's constructor.

@NonNull WatchState watchState

The WatchState for the watch face.

@NonNull ComplicationSlotsManager complicationSlotsManager

The ComplicationSlotsManager returned by createComplicationSlotsManager.

@NonNull CurrentUserStyleRepository currentUserStyleRepository

The CurrentUserStyleRepository constructed using the UserStyleSchema returned by createUserStyleSchema.

@NonNull String resourceOnlyWatchFacePackageName

The android package from which the watch face definition should be loaded.

@NonNull Extra extra

The object returned by createExtra.