# ActiveTileIdentifier

# ActiveTileIdentifier

Artifact:[androidx.wear.tiles:tiles](https://developer.android.com/jetpack/androidx/releases/wear-tiles)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/ActiveTileIdentifier.java+class:androidx.wear.tiles.ActiveTileIdentifier)  
Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.3.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/tiles/ActiveTileIdentifier "View this page in Java")

<br />

```
class ActiveTileIdentifier
```

<br />

*** ** * ** ***

Tile information containing the tile instance ID and component name for identifying a tile instance.

## Summary

|                                                                                                                                                                              ### Public constructors                                                                                                                                                                               |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ActiveTileIdentifier](https://developer.android.com/reference/kotlin/androidx/wear/tiles/ActiveTileIdentifier#ActiveTileIdentifier(android.content.ComponentName,int))`(componentName: `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)`, instanceId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                                    ### Public functions                                     |
|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ComponentName](https://developer.android.com/reference/android/content/ComponentName.html) | [getComponentName](https://developer.android.com/reference/kotlin/androidx/wear/tiles/ActiveTileIdentifier#getComponentName())`()` Component name of the tile provider.       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                 | [getInstanceId](https://developer.android.com/reference/kotlin/androidx/wear/tiles/ActiveTileIdentifier#getInstanceId())`()` Tile ID for identifying an active tile instance. |

## Public constructors

### ActiveTileIdentifier

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.3.0)  

```
ActiveTileIdentifier(componentName: ComponentName, instanceId: Int)
```  

## Public functions

### getComponentName

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.3.0)  

```
fun getComponentName(): ComponentName
```

Component name of the tile provider.  

### getInstanceId

Added in[1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.3.0)  

```
fun getInstanceId(): Int
```

Tile ID for identifying an active tile instance.