displayMessage(_:completionHandler:)
Call this method from your Neprovider subclass if you want to display a message to the person using the app.
Declaration
func displayMessage(_ message: String, completionHandler: @escaping @Sendable (Bool) -> Void)func displayMessage(_ message: String) async -> BoolParameters
- message:
The message you want to display to the person using the app.
- completionHandler:
A block that the system calls after you call this method. The details of the call can vary, as follows:
If the system can’t display the message, or if you call the
displayMessage:completionHandler:method in an Nefilterdataprovider instance, then the system calls thecompletionHandlerblock immediately after you call the method, and sets the block’ssuccessparameter value to False.If the system successfully displays the message to the user, then the system calls the
completionHandlerblock when the user dismisses the message, and sets thesuccessparameter value to True.