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>

计步器更新事件的事件处理程序。

属性

适用于