UIApplicationDelegate.ShouldSaveApplicationState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Whether the application should save application state information.
[Foundation.Export("application:shouldSaveApplicationState:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldSaveApplicationState (UIKit.UIApplication application, Foundation.NSCoder coder);
abstract member ShouldSaveApplicationState : UIKit.UIApplication * Foundation.NSCoder -> bool
override this.ShouldSaveApplicationState : UIKit.UIApplication * Foundation.NSCoder -> bool
Parameters
- application
- UIApplication
Reference to the UIApplication that invoked this delegate method.
- coder
- NSCoder
Returns
- Attributes
Remarks
Both this method and ShouldRestoreApplicationState(UIApplication, NSCoder) must return true
for state preservation and restoration to occur. These methods are convenient for testing aspects of the state preservation process.