Modifica

Condividi tramite


UIApplication.ExtendStateRestoration Method

Definition

Indicates that the application is restoring state asynchronously.

[Foundation.Export("extendStateRestoration")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ExtendStateRestoration ();
abstract member ExtendStateRestoration : unit -> unit
override this.ExtendStateRestoration : unit -> unit
Attributes

Remarks

State restoration occurs on the main thread. Application developers who wish to do state restoration asynchronously should call this method and pair it with calls to CompleteStateRestoration() to indicate to the system that state restoration is occurring asynchronously.

If this method is called and the application crashes before the matching CompleteStateRestoration() is called, all retained state will be discarded on next startup. This behavior prevents the crash from re-occurring.

Applies to