UIKit.UIApplication.RegisterObjectForStateRestoration Method
Registers the uistateRestoringObject as eligible for state restoration.

Syntax

[Foundation.Export("registerObjectForStateRestoration:restorationIdentifier:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public static void RegisterObjectForStateRestoration (IUIStateRestoring uistateRestoringObject, string restorationIdentifier)

Parameters

uistateRestoringObject
Object that is registered with the restoration archive.
restorationIdentifier
Restoration identifier used for the object.

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 UIViewController.EncodeRestorableState.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0