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.
public abstract class BaseComponent : object
- Inheritance
-
- Derived
-
Properties
Declaration
public string ComponentId { get; }
Property Value
API Level: 6
Declaration
public IntPtr ContextHandle { get; set; }
Property Value
API Level: 6
View Source
Id
A component instance ID.
It will be created after OnCreate method is invoked.
Declaration
public string Id { get; }
Property Value
API Level: 6
Declaration
public ComponentBasedApplication Parent { get; }
Property Value
API Level: 6
Methods
Declaration
API Level: 6
View Source
OnRestoreContents(Bundle)
Overrides this method if want to handle behavior to restore the previous status.
Declaration
public 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
View Source
OnSaveContent(Bundle)
Overrides this method if want to handle behavior to save current status.
Declaration
public 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
View Source
SendLaunchRequestAsync(AppControl, AppControlReplyCallback)
Sends the launch request asynchronously.
Declaration
public 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 |
Task<AppControlResult> |
A task with the result of the launch request.
|
Exceptions
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.launch
Events
View Source
DeviceOrientationChanged
Occurs when the device orientation is changed.
Declaration
public event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
Event Type
API Level: 6
View Source
LocaleChanged
Occurs when the system language is chagned.
Declaration
public event EventHandler<LocaleChangedEventArgs> LocaleChanged
Event Type
API Level: 6
View Source
LowBattery
Occurs when the system battery is low.
Declaration
public event EventHandler<LowBatteryEventArgs> LowBattery
Event Type
API Level: 6
View Source
LowMemory
Occurs when the system memory is low.
Declaration
public event EventHandler<LowMemoryEventArgs> LowMemory
Event Type
API Level: 6
Declaration
public event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
Event Type
API Level: 6
View Source
SuspendedStateChanged
Occurs when the device orientation is changed.
Declaration
public event EventHandler<SuspendedStateEventArgs> SuspendedStateChanged
Event Type
API Level: 6
View Source
TimeZoneChanged
Occurs when the time zone is changed.
Declaration
public event EventHandler<TimeZoneChangedEventArgs> TimeZoneChanged
Event Type
API Level: 11
Extension Methods