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

TapListener

interface TapListener
androidx.wear.watchface.ComplicationsManager.TapListener

Summary

Public methods
open Unit

Called when the user double taps on a complication, launches the complication configuration activity.

open Unit

Called when the user single taps on a complication.

Public methods

onComplicationDoubleTapped

open fun onComplicationDoubleTapped(complicationId: Int): Unit

Called when the user double taps on a complication, launches the complication configuration activity.

Parameters
complicationId: Int The watch face's id for the complication double tapped

onComplicationSingleTapped

open fun onComplicationSingleTapped(complicationId: Int): Unit

Called when the user single taps on a complication.

Parameters
complicationId: Int The watch face's id for the complication single tapped