Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
This class represents an application controlled lifecycles by the backend system.
public class CoreApplication : Application, IDisposable
- Inheritance
-
- Derived
-
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
Tizen.NUI.NUIWatchApplication
- Implements
-
System.IDisposable
Constructors
View Source
CoreApplication(ICoreBackend)
Initializes the CoreApplication class.
Declaration
public CoreApplication(ICoreBackend backend)
Parameters
| Type |
Name |
Description |
| ICoreBackend |
backend |
The backend instance implementing ICoreBacked interface.
|
Properties
Declaration
protected ICoreBackend Backend { get; }
Property Value
Methods
View Source
Dispose(bool)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
protected 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
View Source
Exit()
Exits the main loop of the application.
Declaration
public override void Exit()
Overrides
View Source
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
protected virtual void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
View Source
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
protected virtual void OnCreate()
View Source
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
protected virtual void OnDeviceOrientationChanged(DeviceOrientationEventArgs e)
Parameters
View Source
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
protected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
View Source
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
protected virtual void OnLowBattery(LowBatteryEventArgs e)
Parameters
View Source
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
protected virtual void OnLowMemory(LowMemoryEventArgs e)
Parameters
View Source
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
protected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
View Source
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
protected virtual void OnTerminate()
View Source
Run(string[])
Runs the application's main loop.
Declaration
public override void Run(string[] args)
Parameters
| Type |
Name |
Description |
| string[] |
args |
Arguments from commandline.
|
Overrides
Events
View Source
AppControlReceived
Occurs whenever the application receives the appcontrol message.
Declaration
public event EventHandler<AppControlReceivedEventArgs> AppControlReceived
Event Type
View Source
Created
Occurs when the application is launched.
Declaration
public event EventHandler Created
Event Type
| Type |
Description |
| System.EventHandler |
|
View Source
DeviceOrientationChanged
Occurs when the device orientation is changed.
Declaration
public event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
Event Type
View Source
LocaleChanged
Occurs when the system language is chagned.
Declaration
public event EventHandler<LocaleChangedEventArgs> LocaleChanged
Event Type
View Source
LowBattery
Occurs when the system battery is low.
Declaration
public event EventHandler<LowBatteryEventArgs> LowBattery
Event Type
View Source
LowMemory
Occurs when the system memory is low.
Declaration
public event EventHandler<LowMemoryEventArgs> LowMemory
Event Type
Declaration
public event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
Event Type
View Source
Terminated
Occurs when the application is about to shutdown.
Declaration
public event EventHandler Terminated
Event Type
| Type |
Description |
| System.EventHandler |
|
Implements
System.IDisposable