Share via


UIApplicationDelegate.ShouldSaveApplicationState 메서드

정의

애플리케이션이 애플리케이션 상태 정보를 저장해야 하는지 여부입니다.

[Foundation.Export("application:shouldSaveApplicationState:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldSaveApplicationState (UIKit.UIApplication application, Foundation.NSCoder coder);
abstract member ShouldSaveApplicationState : UIKit.UIApplication * Foundation.NSCoder -> bool
override this.ShouldSaveApplicationState : UIKit.UIApplication * Foundation.NSCoder -> bool

매개 변수

application
UIApplication

이 대리자 메서드를 호출한 UIApplication에 대한 참조입니다.

coder
NSCoder

반환

특성

설명

이 메서드와 는 ShouldRestoreApplicationState(UIApplication, NSCoder) 모두 상태 보존 및 복원이 수행되도록 를 반환 true 해야 합니다. 이러한 방법은 상태 보존 프로세스의 측면을 테스트하는 데 편리합니다.

적용 대상