# ComplicationSlotsManager.TapCallback

# ComplicationSlotsManager.TapCallback

Artifact:[androidx.wear.watchface:watchface](https://developer.android.com/jetpack/androidx/releases/wear-watchface)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/ComplicationSlotsManager.kt+class:androidx.wear.watchface.ComplicationSlotsManager.TapCallback)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0)  
Deprecated in[1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***

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

<br />

```
interface ComplicationSlotsManager.TapCallback
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Interface used to report user taps on the[ComplicationSlot](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot). See[addTapListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager#addTapListener(androidx.wear.watchface.ComplicationSlotsManager.TapCallback))and[removeTapListener](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager#removeTapListener(androidx.wear.watchface.ComplicationSlotsManager.TapCallback)).

## Summary

|                                 ### Public functions                                 |
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open `[Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[onComplicationSlotTapped](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager.TapCallback#onComplicationSlotTapped(kotlin.Int))~~`(complicationSlotId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public functions

### onComplicationSlotTapped

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

```
open fun [onComplicationSlotTapped](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlotsManager.TapCallback#onComplicationSlotTapped(kotlin.Int))(complicationSlotId: Int): Unit
```
| **This function is deprecated.**   
| AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Called when the user single taps on a complication.  

|                                            Parameters                                             |
|---------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `complicationSlotId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The id for the[ComplicationSlot](https://developer.android.com/reference/kotlin/androidx/wear/watchface/ComplicationSlot)that was tapped |