Freigeben über


UIApplicationDelegate.ShouldSaveApplicationState Methode

Definition

Gibt an, ob die Anwendung Anwendungsstatusinformationen speichern soll.

[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

Parameter

application
UIApplication

Verweis auf die UIApplication, die diese Delegatmethode aufgerufen hat.

coder
NSCoder

Gibt zurück

Attribute

Hinweise

Sowohl diese Methode ShouldRestoreApplicationState(UIApplication, NSCoder) als auch müssen zurückgegeben true werden, damit der Zustand erhalten und wiederhergestellt werden kann. Diese Methoden eignen sich zum Testen von Aspekten des Zustandserhaltungsprozesses.

Gilt für: