Instance Method

handleAppMessage:completionHandler:

Handle messages sent by the tunnel provider extension’s containing app

Declaration

- (void)handleAppMessage:(NSData *)messageData completionHandler:(void (^)(NSData *responseData))completionHandler;

Parameters

messageData

The message data sent by the tunnel provider extension’s containing app.

completionHandler

A block to be executed by the Tunnel Provider when it is finished handling the message. It may be nil, in which case the containing app does not expect a reply. The provider can send information back to the containing app via the responseData parameter.

Discussion

Use this method to communicate information between the Tunnel Provider and the Tunnel Provider’s containing app.

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