One Logo Pool Ball
AppIntents · IOS API REFERENCE

ResumeWorkoutIntent

protocol · iOS 16.0+ · SDK 27.1

protocol ResumeWorkoutIntent : SystemIntent

An App Intent that lets someone resume your app's paused workout session. On Apple Watch Ultra, someone can resume your app's workout by simultaneously pressing the Action button and the side button when your app has a paused workout session. To implement the resume action, create a structure that adopts the `ResumeWorkoutIntent` protocol. ```swift struct MyResumeWorkoutIntent: ResumeWorkoutIntent { static var title: LocalizedStringResource = "Resume Workout" func perform() async throws -> some IntentResult { logger.debug("*** Performing a resume intent. ***") await MyWorkoutManager.shared.resumeWorkout() return .result() } } ``` This intent needs a ``AppIntents/AppIntent/title`` property that provides a localized description of the action, and a ``AppIntents/AppIntent/perform()`` method, which the system calls when it triggers the intent. For more information, see <doc:ActionButtonArticle>.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →