Edit

Share via


IINStartWorkoutIntentHandling Interface

Definition

Interface defining handler method that, when implemented, must call completion with an INStartWorkoutIntentResponse appropriate to arg.

[Foundation.Protocol(Name="INStartWorkoutIntentHandling", WrapperType=typeof(Intents.INStartWorkoutIntentHandlingWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IINStartWorkoutIntentHandling : IDisposable, ObjCRuntime.INativeObject
type IINStartWorkoutIntentHandling = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

HandleStartWorkout(INStartWorkoutIntent, Action<INStartWorkoutIntentResponse>)

Developers must override this method and invoke the T:System.Action`1 with an INStartWorkoutIntentResponse appropriate to the INStartWorkoutIntent intent.

Extension Methods

ConfirmStartWorkout(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INStartWorkoutIntentResponse>)

Developers may implement this method to customize a workout's starting confirmation.

ResolveGoalValue(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INDoubleResolutionResult>)

Developers may implement this method to customize the resolution of a workout goal.

ResolveIsOpenEnded(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INBooleanResolutionResult>)

Developers may implement this method to customize the determination of whether a workout is open-ended.

ResolveWorkoutGoalUnitType(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INWorkoutGoalUnitTypeResolutionResult>)

Developers may implement this method to customize the resolution of the type of the workout goal.

ResolveWorkoutLocationType(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INWorkoutLocationTypeResolutionResult>)

Developers may implement this method to customize the resolution of the workout location.

ResolveWorkoutName(IINStartWorkoutIntentHandling, INStartWorkoutIntent, Action<INSpeakableStringResolutionResult>)

Developers can call this method to trigger validation of the workout name.

Applies to