CMPedometer
2074 ワード
CMPedometerは、ユーザが歩いた歩数を記録するための徒歩カウンタである.
1 Determining Pedometer Availability
2 Generating Live Pedometer Data
3 Fetching Historical Pedometer Data
Appendix
Sample Code
Swift
Related Documentation
Core Motion Framework Reference
CMPedometer Class Reference
Revision History
時間
説明
2016-01-27
博文完成
Copyright
CSDN:http://blog.csdn.net/y550918116j
GitHub:https://github.com/937447974/Blog
1 Determining Pedometer Availability
//
public class func isStepCountingAvailable() -> Bool
//
public class func isDistanceAvailable() -> Bool
//
public class func isFloorCountingAvailable() -> Bool
//
@available(iOS 9.0, *)
public class func isPaceAvailable() -> Bool
//
@available(iOS 9.0, *)
public class func isCadenceAvailable() -> Bool
2 Generating Live Pedometer Data
// CMPedometerData
public func startPedometerUpdatesFromDate(start: NSDate, withHandler handler: CMPedometerHandler)
//
public func stopPedometerUpdates()
3 Fetching Historical Pedometer Data
//
public func queryPedometerDataFromDate(start: NSDate, toDate end: NSDate, withHandler handler: CMPedometerHandler)
Appendix
Sample Code
Swift
Related Documentation
Core Motion Framework Reference
CMPedometer Class Reference
Revision History
時間
説明
2016-01-27
博文完成
Copyright
CSDN:http://blog.csdn.net/y550918116j
GitHub:https://github.com/937447974/Blog