UIApplication.RegisterObjectForStateRestoration Method

Definition

Registers the uistateRestoringObject as eligible for state restoration.

[Foundation.Export("registerObjectForStateRestoration:restorationIdentifier:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void RegisterObjectForStateRestoration (UIKit.IUIStateRestoring uistateRestoringObject, string restorationIdentifier);
static member RegisterObjectForStateRestoration : UIKit.IUIStateRestoring * string -> unit

Parameters

uistateRestoringObject
IUIStateRestoring

Object that is registered with the restoration archive.

restorationIdentifier
String

Restoration identifier used for the object.

Attributes

Remarks

Calling this method allows the object to be saved and restored but does not automatically trigger preservation/restoration. Application developers must write the object at the appropriate time, for instance EncodeRestorableState(NSCoder).

Applies to