Instance Method

applicationDidBecomeActive

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

Declaration

- (void)applicationDidBecomeActive;

Discussion

WatchKit calls this method to let you know that your app transitioned from the inactive to the active state. Use this method to start any tasks that were paused or not yet started while the app was inactive. For example, you could use it to start timers. You can also use it to gather information needed to configure your app’s initial user interface.

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.

- applicationWillResignActive

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

- applicationWillEnterForeground

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

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