# 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)

*** ** * ** ***


```
public interface ComplicationSlotsManager.TapCallback
```

<br />

*** ** * ** ***

> [!CAUTION]
> **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 `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot`. See `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotsManager#addTapListener(androidx.wear.watchface.ComplicationSlotsManager.TapCallback)` and `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotsManager#removeTapListener(androidx.wear.watchface.ComplicationSlotsManager.TapCallback)`.

## Summary

| ### Public methods |
|---|---|
| `default void` | `[onComplicationSlotTapped](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotsManager.TapCallback#onComplicationSlotTapped(kotlin.Int))(int complicationSlotId)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public methods

### 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)

```
default void [onComplicationSlotTapped](https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlotsManager.TapCallback#onComplicationSlotTapped(kotlin.Int))(int complicationSlotId)
```

> [!CAUTION]
> **This method 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 |
|---|---|
| `int complicationSlotId` | The id for the `https://developer.android.com/reference/androidx/wear/watchface/ComplicationSlot` that was tapped |