Editar

Compartilhar via


UIApplicationDelegate.ShouldRestoreApplicationState Method

Definition

Whether the application should restore saved state information.

[Foundation.Export("application:shouldRestoreApplicationState:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldRestoreApplicationState (UIKit.UIApplication application, Foundation.NSCoder coder);
abstract member ShouldRestoreApplicationState : UIKit.UIApplication * Foundation.NSCoder -> bool
override this.ShouldRestoreApplicationState : 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 ShouldSaveApplicationState(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