Upravit

Sdílet prostřednictvím


UIViewController.EncodeRestorableState(NSCoder) Method

Definition

With DecodeRestorableState(NSCoder), allows custom state restoration.

[Foundation.Export("encodeRestorableStateWithCoder:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void EncodeRestorableState (Foundation.NSCoder coder);
abstract member EncodeRestorableState : Foundation.NSCoder -> unit
override this.EncodeRestorableState : Foundation.NSCoder -> unit

Parameters

coder
NSCoder

The NSCoder that encodes the state of the application.

Attributes

Remarks

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

Applies to

See also

  • <xref:UIKit.UIViewController.DecodeReusableState>