Edit

Share via


UIApplicationDelegate.WillTerminate(UIApplication) Method

Definition

Called if the application is being terminated due to memory constraints or directly by the user.

[Foundation.Export("applicationWillTerminate:")]
public virtual void WillTerminate (UIKit.UIApplication application);
abstract member WillTerminate : UIKit.UIApplication -> unit
override this.WillTerminate : UIKit.UIApplication -> unit

Parameters

application
UIApplication

Reference to the UIApplication that invoked this delegate method.

Attributes

Remarks

iOS applications are expected to be long-lived, with many transitions between activated and non-activated states (see OnActivated(UIApplication), OnResignActivation(UIApplication)) and are typically only terminated by user command or, rarely, due to memory exhaustion (see ReceiveMemoryWarning(UIApplication)).

Applies to

See also

  • <xref:UIKit.UIApplicationDelegate.OnResignActivation>
  • <xref:UIKit.UIApplicationDelegate.WillEnterBackground>