共用方式為


IINPauseWorkoutIntentHandling 介面

定義

定義處理常式方法的介面,在實作時,必須使用適當的 呼叫 completionINPauseWorkoutIntentResponsearg

[Foundation.Protocol(Name="INPauseWorkoutIntentHandling", WrapperType=typeof(Intents.INPauseWorkoutIntentHandlingWrapper))]
[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 IINPauseWorkoutIntentHandling : IDisposable, ObjCRuntime.INativeObject
type IINPauseWorkoutIntentHandling = interface
    interface INativeObject
    interface IDisposable
衍生
屬性
實作

屬性

Handle

處理非受控物件標記法) (指標。

(繼承來源 INativeObject)

方法

HandlePauseWorkout(INPauseWorkoutIntent, Action<INPauseWorkoutIntentResponse>)

開發人員必須覆寫這個方法,並叫用適用于 的 INPauseWorkoutIntentintent T:System.Action'1INPauseWorkoutIntentResponse

擴充方法

ConfirmPauseWorkout(IINPauseWorkoutIntentHandling, INPauseWorkoutIntent, Action<INPauseWorkoutIntentResponse>)

開發人員可以覆寫這個方法,以自訂暫停訂閱的確認。

ResolveWorkoutName(IINPauseWorkoutIntentHandling, INPauseWorkoutIntent, Action<INSpeakableStringResolutionResult>)

開發人員可以呼叫這個方法來觸發驗證擷取名稱。

適用於