Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.wear.ongoing

Interfaces

TimeDependentText

Represents the status or a part of the status of an ongoing activity.

Classes

OngoingActivity

Main class to access the Ongoing Activities API.

OngoingActivityData

This class is used internally by the library to represent the data of an OngoingActivity.

OngoingActivityStatus

Base class to serialize / deserialize OngoingActivityStatus into / from a Notification A status is composed of Parts, and they are joined together with a template.

StatusPart

Abstract class to represent An Ongoing activity status or part of it.

TextStatusPart

An Ongoing activity status (or part of it) representing a plain, static text.

TimerStatusPart

An Ongoing activity status (or part of it) representing a timer or stopwatch.