TileService

public abstract class TileService


Base class for a service providing data for an app tile.

A tile service must implement onTileRequest and onResourcesRequest to respond to requests for updates from the system.

The manifest declaration of this service must include an intent filter for androidx.wear.tiles.action.BIND_TILE_PROVIDER.

The manifest entry should also include android:permission="com.google.android.wearable.permission.BIND_TILE_PROVIDER" to ensure that only the system can bind to it.

Summary

Constants

static final @NonNull String

The intent action used to send update requests to the service.

static final @NonNull String

The ID for the Intent extra containing the ID of the Clickable.

static final @NonNull String

The name of the metadata key that should contain a drawable to be presented as a Tile preview.

Public methods

static @NonNull TileUpdateRequester

Gets an instance of TileUpdateRequester to allow a Tile Service to notify the tile's renderer that it should request a new Timeline from this TileService.

@Override @Nullable IBinder

Inherited methods

From class Context
final @NonNull int
getColor(@NonNull int id)
final @NonNull ColorStateList
final @NonNull Drawable
final @NonNull String
getString(@NonNull int resId)
final @NonNull T
<T> getSystemService(@NonNull Class<@NonNull T> serviceClass)
final @NonNull CharSequence
getText(@NonNull int resId)
final @NonNull TypedArray
@NonNull void
@NonNull void
sendBroadcastWithMultiplePermissions(
    @NonNull Intent intent,
    @NonNull String[] receiverPermissions
)
@NonNull void
From class ContextWrapper
@NonNull boolean
bindIsolatedService(
    @NonNull Intent service,
    @NonNull int flags,
    @NonNull String instanceName,
    @NonNull Executor executor,
    @NonNull ServiceConnection conn
)
@NonNull boolean
bindService(
    @NonNull Intent service,
    @NonNull ServiceConnection conn,
    @NonNull int flags
)
@NonNull boolean
bindServiceAsUser(
    @NonNull Intent service,
    @NonNull ServiceConnection conn,
    @NonNull int flags,
    @NonNull UserHandle user
)
@NonNull int
@NonNull int
@NonNull int[]
checkCallingOrSelfUriPermissions(
    @NonNull List<@NonNull Uri> uris,
    @NonNull int modeFlags
)
@NonNull int
@NonNull int
checkCallingUriPermission(@NonNull Uri uri, @NonNull int modeFlags)
@NonNull int[]
checkCallingUriPermissions(
    @NonNull List<@NonNull Uri> uris,
    @NonNull int modeFlags
)
@NonNull int
checkPermission(
    @NonNull String permission,
    @NonNull int pid,
    @NonNull int uid
)
@NonNull int