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 String

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

static final String

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

static final String

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

Public constructors

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

This method is deprecated.

Context