Instance Property インスタンスプロパティ

automaticTerminationSupportEnabled

A Boolean value indicating whether the app supports automatic termination. アプリが自動終了をサポートするかどうかを指し示しているブール値。

Declaration 宣言

var automaticTerminationSupportEnabled: Bool { get set }

Discussion 議論

Without setting this property or setting the equivalent Info.plist key (NSSupportsAutomaticTermination), the methods disableAutomaticTermination(_:) and enableAutomaticTermination(_:) have no effect, although the counter tracking automatic termination opt-outs is still kept up to date to ensure correctness if this is called later. Currently, setting this property to false has no effect. This property should be set in the app delegate method applicationDidFinishLaunching(_:) or earlier. このプロパティを設定することまたは同等のInfo.plist key (NSSupportsAutomaticTermination)を設定することなしに、メソッドdisableAutomaticTermination(_:)およびenableAutomaticTermination(_:)は効果を持ちません、とはいえ自動終了の取りやめを追跡しているカウンターは、依然として最新のものに保たれて、これが後で呼び出されるならば正確であることを確実にします。現在、このプロパティをfalseに設定することは効果を持ちません。このプロパティは、アプリデリゲートメソッドapplicationDidFinishLaunching(_:)においてまたはより前に設定されるべきです。

See Also 参照

Controlling Automatic Termination 自動終了を制御する