Share via


IINPauseWorkoutIntentHandling.HandlePauseWorkout Method

Definition

Developers must override this method and invoke the Action<T> with an INPauseWorkoutIntentResponse appropriate to the INPauseWorkoutIntent intent.

[Foundation.Export("handlePauseWorkout:completion:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void HandlePauseWorkout(Intents.INPauseWorkoutIntent intent, Action<Intents.INPauseWorkoutIntentResponse> completion);
[<Foundation.Export("handlePauseWorkout:completion:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member HandlePauseWorkout : Intents.INPauseWorkoutIntent * Action<Intents.INPauseWorkoutIntentResponse> -> unit
override this.HandlePauseWorkout : Intents.INPauseWorkoutIntent * Action<Intents.INPauseWorkoutIntentResponse> -> unit

Parameters

intent
INPauseWorkoutIntent

Specifies the user's intention.

completion
Action<INPauseWorkoutIntentResponse>

Completion method that must be called by the override.

Attributes

Applies to