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

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[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; }

Value

The default value is null.

This value can be null.

Remarks

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.

Requirements

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