Instance Method


Handle a sleep event.


- (void)sleepWithCompletionHandler:(void (^)(void))completionHandler;



Implementations of this method must execute this block when the provider is finished handling the sleep event.


This method is called by the system when the device is about to go to sleep.

NEProvider subclasses should override this method if the provider needs to perform any tasks before the device sleeps, such as disconnecting a tunnel connection.

See Also

Handling Sleep and Wake

- wake

Handle a wake event.

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