UIKit.UIViewController.EncodeRestorableState Method
With UIViewController.DecodeRestorableState, allows custom state restoration.

Syntax

[Foundation.Export("encodeRestorableStateWithCoder:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void EncodeRestorableState (Foundation.NSCoder coder)

See Also

UIViewController.DecodeReusableState

Parameters

coder
The Foundation.NSCoder that encodes the state of the application.

Remarks

In applications that supports state restoration, this function and UIViewController.DecodeRestorableState may be used to supplement standard state encoding and decoding. If UIViewController.DecodeRestorableState calls base.DecodeRestorableState(coder), this function should call base.EncodeRestorableState(coder).

Requirements

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