Share via


IINCancelWorkoutIntentHandling.HandleCancelWorkout Method

Definition

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

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

Parameters

intent
INCancelWorkoutIntent

Specifies the user's intention.

completion
Action<INCancelWorkoutIntentResponse>

Completion method that must be called by the override.

Attributes

Applies to