- (void)startStepCountingUpdatesToQueue:(NSOperationQueue *)queue updateOn:(NSInteger)stepCounts withHandler:(CMStepUpdateHandler)handler |
|||||||
Description |
Starts the delivery of current step-counting data to your app. |
||||||
|
This method initiates tracking of the user’s steps and calls the provided block periodically to deliver the results. When you call this method, the step counter resets the current step count value to 0 and begins counting. Each time the step counter records the number of steps in the stepCounts parameter, it executes the specified handler block. For example, if stepCounts is 100, it would send updates at 100 steps, 200 steps, 300 steps, and so on. The number of steps reported to your handler is always the total number of steps since you called this method. The handler block is executed on a best effort basis each time the step count threshold is exceeded. If your app is suspended when the threshold is exceeded, the block is not executed. When your app resumes, the block is not executed until the threshold is exceeded again. To stop the delivery of step-counting updates, call the stopStepCountingUpdates method. Updates also stop when the step counter object itself is deallocated. |
||||||
Parameters |
|
||||||
Availability |
iOS (7.0 and later) |
||||||
Declared In |
|||||||
Reference |
'모바일개발(Mobile Dev) > IOS개발(ObjectC)' 카테고리의 다른 글
How to make itunes app url link address (0) | 2016.01.23 |
---|---|
UILocalNotification (0) | 2016.01.18 |
navigation bar disappeared in storyboard (0) | 2016.01.06 |
Background Mode (0) | 2015.12.30 |
The identity used to sign the executable is no longer valid at Xcode (0) | 2015.12.30 |