Instance Method

applicationWillEnterForeground

Tells the delegate that the app is about to transition from the background to the foreground.

Declaration

- (void)applicationWillEnterForeground;

Discussion

The system calls this method when the app transitions from the background to the foreground. Override this method to undo many of the changes you made to your app upon entering the background. The call to this method is invariably followed by a call to the applicationDidBecomeActive method, as the app moves from the inactive to the active state.

See Also

Monitoring State Changes

Working with the watchOS App Life Cycle

Learn how the watchOS app life cycle operates and respond to life cycle notification methods.

- applicationDidFinishLaunching

Tells the delegate that the launch process is almost done and the extension is almost ready to run.

- applicationDidBecomeActive

Tells the delegate that the Watch app is now visible and processing events.

- applicationWillResignActive

Tells the delegate that the Watch app is about to be deactivated.

- applicationDidEnterBackground

Tells the delegate that the app has transitioned from the foreground to the background.

- deviceOrientationDidChange

Tells the delegate that the device's orientation has changed.

- handleBackgroundTasks:

Tells the delegate that the app has received one or more background tasks.