Class

INResumeWorkoutIntent

A request to resume a paused workout.

Declaration

@interface INResumeWorkoutIntent : INIntent

Overview

SiriKit creates an INResumeWorkoutIntent object when the user asks to resume a currently paused workout. Resuming a workout resumes gathering workout data and counting that data toward the user’s current workout goal. Use this intent object to validate the workout parameters.

To handle this intent, the handler object in your Intents extension must adopt the INResumeWorkoutIntentHandling protocol. Your handler should confirm the request and create an INResumeWorkoutIntentResponse object that indicates it’s possible to resume the workout. For the successful handling of the intent, SiriKit launches your app and passes it an NSUserActivity object your app must then use to resume the workout.

Additional Intent Attributes

Table 1 lists additional attributes of this intent object.

Table 1

Resume workout intent attributes

Attribute

Description

Supported by

Siri Intents, Siri Suggestions

Always requires unlocked device

Yes

Example Phrases

Users can ask Siri to resume a workout in a variety of ways. Table 2 provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list isn’t exhaustive and Siri may recognize many other phrases.

Table 2

Siri phrases that trigger the resumption of a workout

Locale

Example 1

Example 2

en

Resume my workout in <appName>

zh_CN

继续用<appName>走路

继续用<appName>记录跑步

zh_HK

用動動繼續跑步

用動動恢復跑步

zh_TW

<appName>繼續訓練

用<appName>恢復跑步

yue_CN

用动动继续跑步

用动动恢复跑步

ar

استآنف التمرين في <appName>

da

Genoptag min træning i <appName>

Fortsæt træning i <appName>

de

Fahre mit meinem <appName> Workout fort

Fahre mit meinem Workout in <appName> fort

es

Continúa mi entrenamiento en <appName>

Continuar con mi rutina de <appName>

fi

Jatka <appName> harjoittelua

Palaa <appName> harjoitukseen

fr

Reprends mon entrainement sur <appName>

Redémarre mon entrainement sur <appName>

he

המשך אימון ב<appName>

it

Riprendi il mio allenamento in <appName>

Continua il mio esercizio con <appName>

ja

<appName>のワークアウトを再開

<appName>のワークアウトを続行

ko

<appName>에서 달리기 재개해

<appName>으로 수영 재개

ms

Teruskan senaman <appName>

Teruskan senaman pada <appName>

nb

Fortsett treningen i <appName>

Kan du fortsette <appName> treningen

nl

Hervat mijn work-out in <appName>

Kun je mijn activiteit in <appName> verderzetten

pt

Continuar meu exercício no <appName>

Continue minha atividade do <appName>

ru

Возобнови тренировку в <appName>

Продолжай тренировку в <appName>

sv

återuppta löpning

fortsätt min cykling

th

ออกกำลังกายต่อด้วย <appName>

ปั่นจักรยานต่อ

tr

<appName> koşusuna devam et

<appName> koşusunu devam ettir

In Table 2, <appName> represents the name of the app whose Intents extension resumes the workout. If your app uses specific names for workouts, you can tell Siri about those names using the INVocabulary class.

Topics

Creating the Intent Object

- initWithWorkoutName:

Initializes an intent object with the specified workout name.

Specifying Workout Details

workoutName

The name of the workout.

Relationships

Inherits From

See Also

Resume a Workout

INResumeWorkoutIntentHandling

The interface that handles requests to resume a workout.

INResumeWorkoutIntentResponse

Your app’s response to a resume workout intent.