Instance Method

handleQueryRequest:context:completion:

Evaluates a query request and tells the system how to handle the message represented in the request.

Required.

Declaration

- (void)handleQueryRequest:(ILMessageFilterQueryRequest *)queryRequest context:(ILMessageFilterExtensionContext *)context completion:(void (^)(ILMessageFilterQueryResponse *))completion;

Parameters

queryRequest

A query request that describes a received message.

context

The app extension context that defines APIs to defer the request to a server, if necessary.

completion

A completion block used to return a response that describes how to handle the message. You can invoke this block asynchronously.