Xamarin.Forms Guides | Samples

Xamarin.Forms.Application Class

Class that represents a cross-platform mobile application.

See Also: Application

Syntax

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.3.0.0, 1.3.5.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.Application are listed below.

See Also: Element

Protected Constructors

Initializes a new Application instance.

Public Properties

[read-only]
AppLinksIAppLinks. Gets the object that developers use to register or unregister application links.
[read-only]
static
CurrentApplication. Gets the current application.
MainPagePage. Gets or sets the main page of the application.
[read-only]
PropertiesIDictionary<string, object>. Gets the dictionary of properties for this Application object.
ResourcesResourceDictionary. Gets or sets the resource dictionary for this Application object.

Public Methods

On<T>() : IPlatformElementConfiguration<T, Application>
Returns the platform-specific instance of this Application, on which a platform-specific method may be called.
SavePropertiesAsync() : Task
Asynchronously persists the Application.Properties dictionary for the application object.

Protected Methods

OnAppLinkRequestReceived(Uri)
App developers override this method to respond when the user initiates an app link request.
override
OnParentSet()
Throws InvalidOperationException.
OnResume()
Application developers override this method to perform actions when the application resumes from a sleeping state.
OnSleep()
Application developers override this method to perform actions when the application enters the sleeping state.
OnStart()
Application developers override this method to perform actions when the application starts.

Public Events

ModalPoppedEvent that is raised after a view has been popped modally.
ModalPoppingEvent that is raised when a view is modally popped.
ModalPushedEvent that is raised after a view has been pushed modally.
ModalPushingEvent that is raised when a view is modally pushed.

Explicitly Implemented Interface Members