androidwear-osandroid-wear-complication

Can a complication ever appear larger than, or outside of, its designated container?


I've written a watchface that also acts as a data provider. When I add my face's complication to another watch face, if the user taps on the complication I would like to (briefly) show a full screen of information, and then return to the original watchface.

I've been able to mostly accomplish this, except the information appears only within the space of the complication itself. Is there a way to have it appear fullscreen (that is, overlaying the original face)?


Solution

  • When you create the ComplicationData object in your data provider you can register a tap action using setTapAction (on the Builder). Use a PendingIntent that launches an activity in your application. This activity can take up the entire screen. When it is dismissed, after a timeout or user action, the watch face will be displayed again.