UIKit.UIView.RestorationIdentifier Property
If not null, indicates that the UIKit.UIView supports state preservation and restoration.


[get: Foundation.Export("restorationIdentifier")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[set: Foundation.Export("setRestorationIdentifier:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual string RestorationIdentifier { get; set; }


The default value is null.

This value can be null.


If this method returns the default null value, the UIKit.UIView will not have its state preserved and restored.

If the UIKit.UIView does need state preservation and restoration, this method should be overridden to return a string.

In addition to returning a non-null UIView.RestorationIdentifier, so too must the UIKit.UIViewController for which this UIKit.UIView is the UIViewController.View and all the ancestor UIKit.UIViewControllers reachable by the UIViewController.Parent property.


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