Class NUIApplication

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
3

Represents an application that have a UI screen. The NUIApplication class has a default stage.

C#
Copy
public class NUIApplication : CoreApplication, IDisposable
Inheritance
System.Object
NUIApplication
Implements
System.IDisposable

Constructors

View Source

NUIApplication()

The default constructor.

Declaration
C#
Copy
public NUIApplication()
API Level: 3
View Source

NUIApplication(String)

The constructor with a stylesheet.

Declaration
C#
Copy
public NUIApplication(string styleSheet)
Parameters
Type Name Description
System.String styleSheet

The styleSheet url.

API Level: 3
View Source

NUIApplication(String, NUIApplication.WindowMode)

The constructor with a stylesheet and window mode.

Declaration
C#
Copy
public NUIApplication(string styleSheet, NUIApplication.WindowMode windowMode)
Parameters
Type Name Description
System.String styleSheet

The styleSheet url.

NUIApplication.WindowMode windowMode

The windowMode.

API Level: 3
View Source

NUIApplication(String, NUIApplication.WindowMode, WindowType)

The constructor with a stylesheet, window mode and default window type. It is the only way to create an IME window.

Declaration
C#
Copy
public NUIApplication(string styleSheet, NUIApplication.WindowMode windowMode, WindowType type)
Parameters
Type Name Description
System.String styleSheet

The styleSheet URL.

NUIApplication.WindowMode windowMode

The windowMode.

WindowType type

The default window type.

API Level: 9

Properties

View Source

MultilingualResourceManager

ResourceManager to handle multilingual.

Declaration
C#
Copy
public static Resources.ResourceManager MultilingualResourceManager { get; set; }
Property Value
Type Description
Tizen.System.Resources.ResourceManager
API Level: 4

Methods

View Source

AddIdle(Delegate)

Ensures that the function passed in is called from the main loop when it is idle.

Declaration
C#
Copy
public bool AddIdle(Delegate func)
Parameters
Type Name Description
Tizen.System.Delegate func

The function to call

Returns
Type Description
Boolean

true if added successfully, false otherwise

API Level: 4
View Source

Exit()

Exits the NUIApplication.

Declaration
C#
Copy
public override void Exit()
Overrides
API Level: 4
View Source

OnAppControlReceived(AppControlReceivedEventArgs)

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
Parameters
Type Name Description
AppControlReceivedEventArgs e
Overrides
API Level: 3
View Source

OnCreate()

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnCreate()
Overrides
API Level: 3
View Source

OnLocaleChanged(LocaleChangedEventArgs)

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnLocaleChanged(LocaleChangedEventArgs e)
Parameters
Type Name Description
LocaleChangedEventArgs e
Overrides
API Level: 3
View Source

OnLowBattery(LowBatteryEventArgs)

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnLowBattery(LowBatteryEventArgs e)
Parameters
Type Name Description
LowBatteryEventArgs e
Overrides
API Level: 3
View Source

OnLowMemory(LowMemoryEventArgs)

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnLowMemory(LowMemoryEventArgs e)
Parameters
Type Name Description
LowMemoryEventArgs e
Overrides
API Level: 3
View Source

OnPause()

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected virtual void OnPause()
API Level: 3
View Source

OnPreCreate()

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected virtual void OnPreCreate()
API Level: 3
View Source

OnRegionFormatChanged(RegionFormatChangedEventArgs)

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
Parameters
Type Name Description
RegionFormatChangedEventArgs e
Overrides
API Level: 3
View Source

OnResume()

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected virtual void OnResume()
API Level: 3
View Source

OnTerminate()

Overrides this method if you want to handle behavior.

Declaration
C#
Copy
protected override void OnTerminate()
Overrides
API Level: 3
View Source

RegisterAssembly(Assembly)

Register the assembly to XAML.

Declaration
C#
Copy
public static void RegisterAssembly(Assembly assembly)
Parameters
Type Name Description
System.Reflection.Assembly assembly
API Level: 5
View Source

Run(String[])

Runs the NUIApplication.

Declaration
C#
Copy
public override void Run(string[] args)
Parameters
Type Name Description
System.String[] args

Arguments from commandline.

Overrides
API Level: 4

Events

View Source

Paused

Occurs whenever the application is paused.

Declaration
C#
Copy
public event EventHandler Paused
Event Type
Type Description
System.EventHandler
API Level: 4
View Source

Resumed

Occurs whenever the application is resumed.

Declaration
C#
Copy
public event EventHandler Resumed
Event Type
Type Description
System.EventHandler
API Level: 4

Implements

System.IDisposable