Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Constants](https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#constants) \| [Methods](https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#inhmethods)

# TilesManager


`
public


class
TilesManager
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.services.tiles.TilesManager |

<br />

*** ** * ** ***

Provides access to tiles management APIs.

An instance of this class can be obtained directly via the Wear SDK by invoking `https://developer.android.com/reference/com/google/wear/Sdk#getWearManager(android.content.Context,%20java.lang.Class<T>)` API.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#WIDGET_CONTAINER_TYPE_FULLSCREEN` Represents a fullscreen widget container, equivalent to a Wear Tile. |
| `int` | `https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#WIDGET_CONTAINER_TYPE_LARGE` Represents a large widget container. |
| `int` | `https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#WIDGET_CONTAINER_TYPE_SMALL` Represents a small widget container. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/com/google/wear/services/tiles/TilesManager#getActiveTiles(java.util.concurrent.Executor,%20android.os.OutcomeReceiver<java.util.List<com.google.wear.services.tiles.TileInstance>,java.lang.Exception>)(Executor callbackExecutor, OutcomeReceiver<List<https://developer.android.com/reference/com/google/wear/services/tiles/TileInstance>, Exception> callback) ` Asynchronously provides a single snapshot of the list of all active tiles belonging to the caller's package name. |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Constants

### WIDGET_CONTAINER_TYPE_FULLSCREEN

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIDGET_CONTAINER_TYPE_FULLSCREEN
```

Represents a fullscreen widget container, equivalent to a Wear Tile.

<br />

Constant Value:

0
(0x00000000)


### WIDGET_CONTAINER_TYPE_LARGE

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIDGET_CONTAINER_TYPE_LARGE
```

Represents a large widget container. Support for this container type is device dependent.

<br />

Constant Value:

1
(0x00000001)


### WIDGET_CONTAINER_TYPE_SMALL

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIDGET_CONTAINER_TYPE_SMALL
```

Represents a small widget container. Support for this container type is device dependent.

<br />

Constant Value:

2
(0x00000002)


## Public methods

### getActiveTiles

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public void getActiveTiles (Executor callbackExecutor, 
                OutcomeReceiver<List<TileInstance>, Exception> callback)
```

Asynchronously provides a single snapshot of the list of all active tiles belonging to the
caller's package name.

<br />

| Parameters ||
|---|---|
| `callbackExecutor` | `Executor`: The executor that the callback runs on. The callback event will be dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use `https://developer.android.com/reference/android/content/Context#getMainExecutor()`. <br /> |
| `callback` | `OutcomeReceiver`: The callback to run when the operation is completed. The possible errors thrown are `https://developer.android.com/reference/java/lang/IllegalArgumentException` if the passed context to `https://developer.android.com/reference/com/google/wear/Sdk#getWearManager(android.content.Context,%20java.lang.Class<T>)` is non-existent or doesn't match the caller's UID, or `https://developer.android.com/reference/java/lang/Exception` in case of an internal error. <br /> |