Class

INResumeWorkoutIntent

A request to resume a paused workout.

Overview

SiriKit creates an INResumeWorkoutIntent object when the user asks to resume a currently paused workout. Resuming a workout begins the gathering of workout data again and the counting of 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 to indicate that it is possible to resume the workout. For the successful handling of the intent, SiriKit launches your app and passes it an NSUserActivity object that 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

Always requires unlocked device

Yes

Example Phrases

There are many ways in which users can ask Siri to resume a workout. Table 2 provides a few sample phrases in different languages. You can use these phrases during testing to trigger your intents. This list is not 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>走路

zh_HK

用動動繼續跑步

用動動恢復跑步

zh_TW

<appName>繼續訓練

yue_CN

用动动继续跑步

用动动恢复跑步

ar

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

da

genoptag min 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>

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 the preceding examples, <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

init(workoutName: INSpeakableString?)

Initializes an intent object with the specified workout name.

Specifying Workout Details

var workoutName: INSpeakableString?

The name of the workout.

Relationships

Inherits From

Conforms To

See Also

Resume a Workout

protocol INResumeWorkoutIntentHandling

The handler interface for resuming a workout.

class INResumeWorkoutIntentResponse

Contains your app’s response to a resume workout intent.