Class CoreApplication
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
This class represents an application controlled lifecycles by the backend system.
C#Copypublic class CoreApplication : Application, IDisposable
- Inheritance
- Derived
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic CoreApplication(ICoreBackend backend)
Parameters
Type | Name | Description |
---|---|---|
ICoreBackend | backend | The backend instance implementing ICoreBacked interface. |
Properties
Declaration
C#Copyprotected ICoreBackend Backend { get; }
Property Value
Type | Description |
---|---|
ICoreBackend |
Methods
Dispose(bool)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
C#Copyprotected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Overrides
Declaration
C#Copypublic override void Exit()
Overrides
OnAppControlReceived(AppControlReceivedEventArgs)
Overrides this method if want to handle behavior when the application receives the appcontrol message. If base.OnAppControlReceived() is not called, the event 'AppControlReceived' will not be emitted.
Declaration
C#Copyprotected virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
AppControlReceivedEventArgs | e |
OnCreate()
Overrides this method if want to handle behavior when the application is launched. If base.OnCreated() is not called, the event 'Created' will not be emitted.
Declaration
C#Copyprotected virtual void OnCreate()
OnDeviceOrientationChanged(DeviceOrientationEventArgs)
Overrides this method if want to handle behavior when the device orientation is changed. If base.OnRegionFormatChanged() is not called, the event 'RegionFormatChanged' will not be emitted.
Declaration
C#Copyprotected virtual void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DeviceOrientationEventArgs | e | The device orientation changed event argument |
OnLocaleChanged(LocaleChangedEventArgs)
Overrides this method if want to handle behavior when the system language is changed. If base.OnLocaleChanged() is not called, the event 'LocaleChanged' will not be emitted.
Declaration
C#Copyprotected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LocaleChangedEventArgs | e | The locale changed event argument |
OnLowBattery(LowBatteryEventArgs)
Overrides this method if want to handle behavior when the system battery is low. If base.OnLowBattery() is not called, the event 'LowBattery' will not be emitted.
Declaration
C#Copyprotected virtual void OnLowBattery(LowBatteryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowBatteryEventArgs | e | The low battery event argument |
OnLowMemory(LowMemoryEventArgs)
Overrides this method if want to handle behavior when the system memory is low. If base.OnLowMemory() is not called, the event 'LowMemory' will not be emitted.
Declaration
C#Copyprotected virtual void OnLowMemory(LowMemoryEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
LowMemoryEventArgs | e | The low memory event argument |
OnRegionFormatChanged(RegionFormatChangedEventArgs)
Overrides this method if want to handle behavior when the region format is changed. If base.OnRegionFormatChanged() is not called, the event 'RegionFormatChanged' will not be emitted.
Declaration
C#Copyprotected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
RegionFormatChangedEventArgs | e | The region format changed event argument |
OnTerminate()
Overrides this method if want to handle behavior when the application is terminated. If base.OnTerminate() is not called, the event 'Terminated' will not be emitted.
Declaration
C#Copyprotected virtual void OnTerminate()
Declaration
C#Copypublic override void Run(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args | Arguments from commandline. |
Overrides
Events
Declaration
C#Copypublic event EventHandler<AppControlReceivedEventArgs> AppControlReceived
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><AppControlReceivedEventArgs> |
Declaration
C#Copypublic event EventHandler Created
Event Type
Type | Description |
---|---|
System.EventHandler |
Declaration
C#Copypublic event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><DeviceOrientationEventArgs> |
Declaration
C#Copypublic event EventHandler<LocaleChangedEventArgs> LocaleChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><LocaleChangedEventArgs> |
Declaration
C#Copypublic event EventHandler<LowBatteryEventArgs> LowBattery
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><LowBatteryEventArgs> |
Declaration
C#Copypublic event EventHandler<LowMemoryEventArgs> LowMemory
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><LowMemoryEventArgs> |
Declaration
C#Copypublic event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><RegionFormatChangedEventArgs> |
Declaration
C#Copypublic event EventHandler Terminated
Event Type
Type | Description |
---|---|
System.EventHandler |