---
title: CMStepQueryHandler
framework: coremotion
role: symbol
role_heading: Type Alias
path: coremotion/cmstepqueryhandler
---

# CMStepQueryHandler

A block that reports the number of steps for a query operation.

## Declaration

```swift
typealias CMStepQueryHandler = (Int, (any Error)?) -> Void
```

## Discussion

Discussion This block takes two parameters:

## See Also

### Getting Historical Step Counting Data

- [queryStepCountStarting(from:to:to:withHandler:)](coremotion/cmstepcounter/querystepcountstarting(from:to:to:withhandler:).md)
