A set of methods implemented by a Message Filter app extension to handle query requests.


protocol ILMessageFilterQueryHandling


A Message Filter app extension that adopts this protocol forms a response about the message described in the query, based on information that it either stores locally or receives from an associated network service.

When the app extension defers a query request to a server, the system handles all network communication, passing the request to the server and passing the server's response back to the app extension.


Handling a Query Request

func handle(ILMessageFilterQueryRequest, context: ILMessageFilterExtensionContext, completion: (ILMessageFilterQueryResponse) -> Void)

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



Inherits From

See Also


class ILMessageFilterQueryRequest

A request for a Message Filter app extension to determine the status of a message received from an unknown sender.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software