Contents

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 -> Bool

Parameters

  • 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 the completionHandler block immediately after you call the method, and sets the block’s success parameter value to False.

    • If the system successfully displays the message to the user, then the system calls the completionHandler block when the user dismisses the message, and sets the success parameter value to True.