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