Instance Method

sleepWithCompletionHandler:

Handle a sleep event.

Declaration

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

Parameters

completionHandler

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

Discussion

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.