共用方式為


IINCancelWorkoutIntentHandling.HandleCancelWorkout 方法

定義

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

[Foundation.Export("handleCancelWorkout:completion:")]
[Foundation.Preserve(Conditional=true)]
public void HandleCancelWorkout(Intents.INCancelWorkoutIntent intent, Action<Intents.INCancelWorkoutIntentResponse> completion);
abstract member HandleCancelWorkout : Intents.INCancelWorkoutIntent * Action<Intents.INCancelWorkoutIntentResponse> -> unit

參數

intent
INCancelWorkoutIntent

指定使用者的意圖。

completion
Action<INCancelWorkoutIntentResponse>

覆寫必須呼叫的完成方法。

屬性

適用於