One Logo Pool Ball
CoreMotion · IOS API REFERENCE

CMStepCounter

class · iOS 7.0+ · Deprecated in iOS 8.0 · SDK 27.1

class CMStepCounter

Members (5)

static · iOS 7.0+ · Deprecated in iOS 8.0

isStepCountingAvailable

TypeScript
static isStepCountingAvailable(): boolean
Swift declaration
class func isStepCountingAvailable() -> Bool
init

init

TypeScript
static init(): CMStepCounter
Swift declaration
init()
method · iOS 7.0+ · Deprecated in iOS 8.0

queryStepCountStarting

TypeScript
queryStepCountStarting(start: globalThis.Date, end: globalThis.Date, queue: _Foundation_OperationQueue, handler: ((arg0: number, arg1: (NativeError) | null) => void)): void
Swift declaration
func queryStepCountStarting(from start: Date, to end: Date, to queue: OperationQueue, withHandler handler: @escaping CMStepQueryHandler)
method · iOS 7.0+ · Deprecated in iOS 8.0

startStepCountingUpdates

TypeScript
startStepCountingUpdates(queue: _Foundation_OperationQueue, stepCounts: number, handler: ((arg0: number, arg1: globalThis.Date, arg2: (NativeError) | null) => void)): void
Swift declaration
func startStepCountingUpdates(to queue: OperationQueue, updateOn stepCounts: Int, withHandler handler: @escaping CMStepUpdateHandler)
method · iOS 7.0+ · Deprecated in iOS 8.0

stopStepCountingUpdates

TypeScript
stopStepCountingUpdates(): void
Swift declaration
func stopStepCountingUpdates()

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMotion types →