Class ComponentBasedApplication
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
The class for supporting multi-components based application model.
public abstract class ComponentBasedApplication : Application, IDisposable
- Inheritance
- Derived
- Implements
-
System.IDisposable
Constructors
View SourceComponentBasedApplication(IDictionary<Type, string>)
Initializes the ComponentBasedApplicationBase class.
Declaration
public ComponentBasedApplication(IDictionary<Type, string> typeInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<TKey, TValue><System.Type, string> | typeInfo | The component type information. The key should be a class type of FrameComponent or SubComponent subclass. The value should be a component id which is declared in tizen-manifest.xml. |
Methods
View SourceExit()
Exits the main loop of the application.
Declaration
public override void Exit()
Overrides
View SourceOnExit()
This method will be called to exit main-loop
Declaration
protected virtual void OnExit()
OnFinished()
This method will be called after exiting main-loop
Declaration
protected virtual void OnFinished()
OnInit(string[])
This method will be called before running main-loop
Declaration
protected virtual void OnInit(string[] args)
Parameters
Type | Name | Description |
---|---|---|
string[] | args |
OnRun()
This method will be called to start main-loop
Declaration
protected abstract void OnRun()
RegisterComponent(Type, string)
Registers a component.
Declaration
public void RegisterComponent(Type compType, string compId)
Parameters
Type | Name | Description |
---|---|---|
System.Type | compType | Class type |
string | compId | Component ID |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when component type is already added or not sub-class of FrameComponent or ServiceComponent |
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
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when component type is already added to the component. |