# QueryHandler | Local Home SDK

# - [smarthome](https://developers.home.google.com/reference/local-home/modules/smarthome.html).
- [IntentFlow](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html).
- QueryHandler

Callback registered with the [App](https://developers.home.google.com/reference/local-home/classes/smarthome.app.html) via [App.onQuery](https://developers.home.google.com/reference/local-home/classes/smarthome.app.html#onquery) to process
requests for current device state.

### Callable

- __call ( request : [QueryRequest](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryrequest) ) : Promise \< [QueryResponse](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryresponse) \> \| [QueryResponse](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryresponse)
- Callback function for the intent.

  Implement this function to handle each intent request and return
  a response.

  #### Parameters

  -

    ##### request: [QueryRequest](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryrequest)

  #### Returns Promise\<[QueryResponse](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryresponse)\> \| [QueryResponse](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html#queryresponse)