Class BaseComponent
Definition
- Namespace:
- Tizen.Applications.ComponentBased.Common
- Assembly:
- Tizen.Applications.ComponentBased.dll
Represents the base class for components, providing common functionalities for both FrameComponent and ServiceComponent.
[Obsolete("This has been deprecated in API14")]
public abstract class BaseComponent
- Inheritance
-
BaseComponent
- Derived
Remarks
This class cannot be registered directly by ComponentBased applications. It serves as a base class to be inherited by other components.
Properties
View SourceComponentId
Gets the ID of the component.
Declaration
[Obsolete("This has been deprecated in API14")]
public string ComponentId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Gets the unique instance ID of the component. It will be created after OnCreate method is invoked.
Declaration
[Obsolete("This has been deprecated in API14")]
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| string |
Parent
Gets the parent application object to which the component belongs.
Declaration
[Obsolete("This has been deprecated in API14")]
public ComponentBasedApplication Parent { get; }
Property Value
| Type | Description |
|---|---|
| ComponentBasedApplication |
Methods
View SourceFinish()
Finishes the current component.
Declaration
[Obsolete("This has been deprecated in API14")]
public void Finish()
OnRestoreContents(Bundle)
Override this method to handle restoring the previous state of the component.
Declaration
[Obsolete("This has been deprecated in API14")]
public virtual void OnRestoreContents(Bundle c)
Parameters
| Type | Name | Description |
|---|---|---|
| Bundle | c | A bundle containing the saved state of the component. It can only be used within the callback. To use it outside, create a copy. |
OnSaveContent(Bundle)
Override this method to handle saving the current state of the component.
Declaration
[Obsolete("This has been deprecated in API14")]
public virtual void OnSaveContent(Bundle c)
Parameters
| Type | Name | Description |
|---|---|---|
| Bundle | c | A bundle containing the current state of the component. It can only be used within the callback. To use it outside, create a copy. |
SendLaunchRequestAsync(AppControl, AppControlReplyCallback)
Sends a launch request asynchronously.
Declaration
[Obsolete("This has been deprecated in API14")]
public Task<AppControlResult> SendLaunchRequestAsync(AppControl control, AppControlReplyCallback replyAfterLaunching)
Parameters
| Type | Name | Description |
|---|---|---|
| AppControl | control | The AppControl object representing the request details. |
| AppControlReplyCallback | replyAfterLaunching | The callback function to be invoked when the reply is received. |
Returns
| Type | Description |
|---|---|
| Task<AppControlResult> | A task representing the result of the launch request. |
Remarks
Use this method to send a launch request with group mode enabled. If group mode is not required, you can use SendLaunchRequestAsync() instead.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when failed because of the argument is invalid. |
| InvalidOperationException | Thrown when there is a failure in setting the component information in the AppControl. |
| AppNotFoundException | Thrown when the target application is not found. |
| LaunchRejectedException | Thrown when the launch request is rejected. |
Events
View SourceDeviceOrientationChanged
Occurs when the device orientation is changed.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<DeviceOrientationEventArgs> |
LocaleChanged
Occurs when the system language is chagned.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<LocaleChangedEventArgs> LocaleChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<LocaleChangedEventArgs> |
LowBattery
Occurs when the system battery is low.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<LowBatteryEventArgs> LowBattery
Event Type
| Type | Description |
|---|---|
| EventHandler<LowBatteryEventArgs> |
LowMemory
Occurs when the system memory is low.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<LowMemoryEventArgs> LowMemory
Event Type
| Type | Description |
|---|---|
| EventHandler<LowMemoryEventArgs> |
RegionFormatChanged
Occurs when the region format is changed.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<RegionFormatChangedEventArgs> |
SuspendedStateChanged
Occurs when the device orientation is changed.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<SuspendedStateEventArgs> SuspendedStateChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<SuspendedStateEventArgs> |
TimeZoneChanged
Occurs when the time zone is changed.
Declaration
[Obsolete("This has been deprecated in API14")]
public event EventHandler<TimeZoneChangedEventArgs> TimeZoneChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<TimeZoneChangedEventArgs> |