Class ComponentBasedApplication
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
- API Level:
- 6
The class for supporting multi-components based application model.
C#Copypublic abstract class ComponentBasedApplication : Application, IDisposable
- Inheritance
- Derived
- Implements
-
System.IDisposable
Constructors
View Source
ComponentBasedApplication(IDictionary<Type, String>)
Initializes the ComponentBasedApplicationBase class.
Declaration
C#Copypublic ComponentBasedApplication(IDictionary<Type, string> typeInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<Type, System.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. |
API Level: 6
Methods
Declaration
C#Copypublic override void Exit()
Overrides
API Level: 6
Declaration
C#Copyprotected virtual void OnExit()
API Level: 6
Declaration
C#Copyprotected virtual void OnFinished()
API Level: 6
Declaration
C#Copyprotected virtual void OnInit(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args |
API Level: 6
Declaration
C#Copyprotected abstract void OnRun()
API Level: 6
Declaration
C#Copypublic void RegisterComponent(Type compType, string compId)
Parameters
Type | Name | Description |
---|---|---|
Type | compType | Class type |
System.String | compId | Component ID |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when component type is already added or not sub-class of FrameComponent or ServiceComponent |
API Level: 6
Declaration
C#Copypublic override void Run(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args | Arguments from commandline. |
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when component type is already added to the component. |
API Level: 6
Implements
System.IDisposable