Package apple.identitylookup.protocol
Interface ILMessageFilterQueryHandling
-
public interface ILMessageFilterQueryHandlingFunctionality related to MessageFilter extension query requests. Subclasses of ILMessageFilterExtension which support querying must conform to this protocol.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceILMessageFilterQueryHandling.Block_handleQueryRequestContextCompletion
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleQueryRequestContextCompletion(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.
-
-
-
Method Detail
-
handleQueryRequestContextCompletion
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. 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.- Parameters:
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.
-
-