共用方式為


CMPedometer.StartPedometerEventUpdates 方法

定義

開始處理更新至一般資料。

[Foundation.Export("startPedometerEventUpdatesWithHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void StartPedometerEventUpdates (Action<CoreMotion.CMPedometerEvent,Foundation.NSError> handler);
abstract member StartPedometerEventUpdates : Action<CoreMotion.CMPedometerEvent, Foundation.NSError> -> unit
override this.StartPedometerEventUpdates : Action<CoreMotion.CMPedometerEvent, Foundation.NSError> -> unit

參數

handler
Action<CMPedometerEvent,NSError>

pedometer 更新事件的事件處理常式。

屬性

適用於