Tells the delegate that the Watch app is about to be deactivated.
- watchOS 2.0+
WatchKit calls this method after your app launches and before it exits. Use this method to pause any active tasks. For example, you could use it to stop any active timers. An app in the inactive state should do minimal work while it waits to transition to the active or not running state.
If your app has unsaved user data, you can save it here to ensure that it is not lost. However, it is recommended that you save user data at appropriate points throughout the execution of your app, usually in response to user actions. Do not rely on specific app state transitions to save all of your app’s critical data.