---
title: "queryDyskineticSymptom(from:to:withHandler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmmovementdisordermanager/querydyskineticsymptom(from:to:withhandler:)"
---

# queryDyskineticSymptom(from:to:withHandler:)

Query for dyskinetic symptoms from the provided time interval.

## Declaration

```swift
func queryDyskineticSymptom(from fromDate: Date, to toDate: Date, withHandler handler: @escaping CMDyskineticSymptomResultHandler)
```

## Parameters

- `fromDate`: The start date and time of the query. The start must be within the last seven days.
- `toDate`: The end date and time of the query. The end must be within the last seven days, and must be after the start date.
- `handler`: A block for handling the dyskinetic symptom results returned by the query.

## Discussion

Discussion Use this method to asynchronously query for dyskinetic symptoms recorded by the monitorKinesias(forDuration:) method. The movement disorder manager keeps dyskinetic symptom results for only seven days after the time of recording. After the manager retrieves the queried results, it calls your handler block from an anonymous background queue. Provide a completion handler to access and process these results.

## See Also

### Related Documentation

- [monitorKinesias(forDuration:)](coremotion/cmmovementdisordermanager/monitorkinesias(forduration:).md)

### Querying for Movement Disorders

- [queryTremor(from:to:withHandler:)](coremotion/cmmovementdisordermanager/querytremor(from:to:withhandler:).md)
- [CMTremorResultHandler](coremotion/cmtremorresulthandler.md)
- [CMDyskineticSymptomResultHandler](coremotion/cmdyskineticsymptomresulthandler.md)
- [lastProcessedDate()](coremotion/cmmovementdisordermanager/lastprocesseddate().md)
