FMX.Platform.TApplicationEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TApplicationEvent = (FinishedLaunching, BecameActive, WillBecomeInactive, EnteredBackground, WillBecomeForeground, WillTerminate, LowMemory, TimeChange, OpenURL);

C++

enum class DECLSPEC_DENUM TApplicationEvent : unsigned char { FinishedLaunching, BecameActive, WillBecomeInactive, EnteredBackground, WillBecomeForeground, WillTerminate, LowMemory, TimeChange, OpenURL, aeFinishedLaunching _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.FinishedLaunching")  = 0, aeBecameActive _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.BecameActive")  = 1, aeWillBecomeInactive _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.WillBecomeInactive")  = 2, aeEnteredBackground _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.EnteredBackground")  = 3, aeWillBecomeForeground _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.WillBecomeForeground")  = 4, aeWillTerminate _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.WillTerminate")  = 5, aeLowMemory _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.LowMemory")  = 6,
    aeTimeChange _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.TimeChange")  = 7, aeOpenURL _DEPRECATED_ATTRIBUTE3("Use TApplicationEvent.OpenURL")  = 8 };

Properties

Type Visibility Source Unit Parent
enum public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform FMX.Platform

Description

Type of an application event.

An instance of TApplicationEvent may have any of the following values:

Item Description Platform
Android iOS

BecameActive

Your application has gained the focus.

Supported

Supported

EnteredBackground

The user is no longer using your application, but your application is still running in the background.

Supported

Supported

FinishedLaunching

Your application has been launched.

Supported

Supported

LowMemory

This warns your application that the device is running out of memory.

Your application should reduce memory usage, freeing structures and data that can be loaded again at a later point.

Supported

Supported

OpenURL

You application has received a request to open an URL.

Application events of this type are usually associated with a context. This context is an instance of the iOS-only TiOSOpenApplicationContext class, which provides the following read-only properties:

  • TiOSOpenApplicationContext.SourceApp is a string that contains the bundle ID of the application that requested your application to open the URL.
  • TiOSOpenApplicationContext.URL is the URL to open, either a network resource or a file.
  • TiOSOpenApplicationContext.Context is a pointer to a property-list object that might provide additional information.

See the iOS API reference documentation for more information.

Supported

TimeChange

There has been a significant change in time.

This event might happen for example when the day changes or when the device changes to or from daylight savings time.

Supported

WillBecomeForeground

The user is now using your application, which was previously in the background.

Supported

Supported

WillBecomeInactive

Your application is going to loose the focus.

Supported

Supported

WillTerminate

The user is quitting your application.

Supported

Supported

See Also