<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityLookup",
  "identifier" : "/documentation/IdentityLookup/ILMessageFilterQueryHandling",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SMS and Call Reporting"
    ],
    "preciseIdentifier" : "c:objc(pl)ILMessageFilterQueryHandling"
  },
  "title" : "ILMessageFilterQueryHandling"
}
-->

# ILMessageFilterQueryHandling

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

```
protocol ILMessageFilterQueryHandling : NSObjectProtocol
```

## Overview

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.

## Topics

### Handling a Query Request

[`func handle(ILMessageFilterQueryRequest, context: ILMessageFilterExtensionContext, completion: (ILMessageFilterQueryResponse) -> Void)`](/documentation/IdentityLookup/ILMessageFilterQueryHandling/handle(_:context:completion:))

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

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)