public interface ILMessageFilterQueryHandling
Subclasses of ILMessageFilterExtension which support querying must conform to this protocol.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ILMessageFilterQueryHandling.Block_handleQueryRequestContextCompletion |
| Modifier and Type | Method and Description |
|---|---|
void |
handleQueryRequestContextCompletion(ILMessageFilterQueryRequest queryRequest,
ILMessageFilterExtensionContext context,
ILMessageFilterQueryHandling.Block_handleQueryRequestContextCompletion completion)
Evaluate a query request and provide a response describing how the system should handle the message it represents.
|
void handleQueryRequestContextCompletion(ILMessageFilterQueryRequest queryRequest, ILMessageFilterExtensionContext context, ILMessageFilterQueryHandling.Block_handleQueryRequestContextCompletion completion)
May include either (or both) of the following:
- Using offline/stored information to form a response about the message described by the query request.
- Deferring the query request to a network service associated with the app extension, allowing the network service to return data back to extension in order to form a response about the message. The `context` parameter provides an API which allows deferring a request to the network and receiving the response to that network request.
Block specified in `completion` parameter must be invoked with a response describing how to handle the message, and may be invoked asynchronously.
queryRequest - A query request to be handled which describes a received message.context - Extension context which offers API to defer request to network if necessary.completion - Completion block for returning a response.