Instance Method

displayMessage:completionHandler:

Call this method from your NEProvider subclass if you want to display a message to the user.

Declaration

- (void)displayMessage:(NSString *)message completionHandler:(void (^)(BOOL success))completionHandler;

Parameters

message

The message you want to display to the user.

completionHandler

A block that is called by the system after you call this method. The details of the call can vary, as follows:

  • If the system cannot 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 NO.

  • 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 YES.

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