UIApplication.RegisterObjectForStateRestoration 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.
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).