Class BaseComponent
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
- API Level:
- 6
This is a base-component class. It provides common functions of FrameComponent and ServiceComponent.
C#Copypublic abstract class BaseComponent
- Inheritance
-
System.ObjectBaseComponent
- Derived
Remarks
This class cannot be registered by ComponentBased applications.
Properties
Declaration
C#Copypublic string ComponentId { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Declaration
C#Copypublic string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 6
Declaration
C#Copypublic ComponentBasedApplication Parent { get; }
Property Value
Type | Description |
---|---|
ComponentBasedApplication |
API Level: 6
Methods
Declaration
C#Copypublic void Finish()
API Level: 6
OnRestoreContents(Bundle)
Overrides this method if want to handle behavior to restore the previous status.
Declaration
C#Copypublic virtual void OnRestoreContents(Bundle c)
Parameters
Type | Name | Description |
---|---|---|
Bundle | c | Contents. It can be used only in the callback. To use outside, make a copy. |
API Level: 6
OnSaveContent(Bundle)
Overrides this method if want to handle behavior to save current status.
Declaration
C#Copypublic virtual void OnSaveContent(Bundle c)
Parameters
Type | Name | Description |
---|---|---|
Bundle | c | Contents. It can be used only in the callback. To use outside, make a copy. |
API Level: 6
SendLaunchRequestAsync(AppControl, AppControlReplyCallback)
Sends the launch request asynchronously.
Declaration
C#Copypublic Task<AppControlResult> SendLaunchRequestAsync(AppControl control, AppControlReplyCallback replyAfterLaunching)
Parameters
Type | Name | Description |
---|---|---|
AppControl | control | appcontrol object |
AppControlReplyCallback | replyAfterLaunching | The callback function to be called when the reply is delivered. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<AppControlResult> | A task with the result of the launch request. |
Remarks
To use group mode, you must use this function instead of SendLaunchRequestAsync().
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of the argument is invalid. |
System.InvalidOperationException | Thrown when fail to set component information to the AppControl. |
AppNotFoundException | Thrown when the application to run is not found. |
LaunchRejectedException | Thrown when the launch request is rejected. |
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.launch
Events
Declaration
C#Copypublic event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
Event Type
Type | Description |
---|---|
System.EventHandler<DeviceOrientationEventArgs> |
API Level: 6
Declaration
C#Copypublic event EventHandler<LocaleChangedEventArgs> LocaleChanged
Event Type
Type | Description |
---|---|
System.EventHandler<LocaleChangedEventArgs> |
API Level: 6
Declaration
C#Copypublic event EventHandler<LowBatteryEventArgs> LowBattery
Event Type
Type | Description |
---|---|
System.EventHandler<LowBatteryEventArgs> |
API Level: 6
Declaration
C#Copypublic event EventHandler<LowMemoryEventArgs> LowMemory
Event Type
Type | Description |
---|---|
System.EventHandler<LowMemoryEventArgs> |
API Level: 6
Declaration
C#Copypublic event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
Event Type
Type | Description |
---|---|
System.EventHandler<RegionFormatChangedEventArgs> |
API Level: 6
Declaration
C#Copypublic event EventHandler<SuspendedStateEventArgs> SuspendedStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<SuspendedStateEventArgs> |