Google is committed to advancing racial equity for Black communities. See how.

TapListener

interface TapListener
androidx.wear.watchface.WatchFace.TapListener

Listens for taps on the watchface which didn't land on Complications.

Summary

Public methods
abstract Unit
onTap(originalTapType: Int, @Px xPos: Int, @Px yPos: Int)

Called whenever the user taps on the watchface but doesn't hit a Complication.

Public methods

onTap

@UiThread abstract fun onTap(
    originalTapType: Int,
    @Px xPos: Int,
    @Px yPos: Int
): Unit

Called whenever the user taps on the watchface but doesn't hit a Complication.