Editar

Compartir a través de


UIApplicationDelegate.OnActivated(UIApplication) Method

Definition

Called when the application is launched and every time the app returns to the foreground.

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

Parameters

application
UIApplication

Reference to the UIApplication that invoked this delegate method.

Attributes

Remarks

Because iOS applications should be designed to be long-lived, with many transitions between foreground processing and suspension or background processing, this method is generally the proper place to ensure that all the resources and state information for foreground processing are available and properly configured.

Applies to

See also

  • <xref:UIKit.UIApplicationDelegate.OnResignActivation>