Edit

Share via


UIApplicationDelegate.ShouldSaveApplicationState Method

Definition

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.

Applies to