Share via


IINEndWorkoutIntentHandling.HandleEndWorkout Method

Definition

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

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

Parameters

intent
INEndWorkoutIntent

Specifies the user's intention.

completion
Action<INEndWorkoutIntentResponse>

Completion method that must be called by the override.

Attributes

Applies to