Class BaseComponent

    Definition

    Namespace:
    Tizen.Applications.ComponentBased.Common
    Assembly:
    Tizen.Applications.ComponentBased.dll

    This is a base-component class. It provides common functions of FrameComponent and ServiceComponent.

    public abstract class BaseComponent
    Inheritance
    object
    BaseComponent
    Derived
    FrameComponent
    FrameComponent
    FrameComponent
    FrameComponent
    FrameComponent
    FrameComponent
    FrameComponent
    FrameComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    ServiceComponent
    Tizen.Applications.ComponentBased.Common.WidgetComponent
    Tizen.Applications.ComponentBased.Common.WidgetComponent
    Tizen.Applications.ComponentBased.Common.WidgetComponent
    Tizen.Applications.ComponentBased.Common.WidgetComponent
    Tizen.Applications.ComponentBased.Common.WidgetComponent
    Remarks

    This class cannot be registered by ComponentBased applications.

    Properties

    View Source

    ComponentId

    A component ID

    Declaration
    public string ComponentId { get; }
    Property Value
    Type Description
    string
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    Id

    A component instance ID. It will be created after OnCreate method is invoked.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    string
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    Parent

    Parent object

    Declaration
    public ComponentBasedApplication Parent { get; }
    Property Value
    Type Description
    ComponentBasedApplication
    Remarks

    This class cannot be registered by ComponentBased applications.

    Methods

    View Source

    Finish()

    Finish current component

    Declaration
    public void Finish()
    Remarks

    This class cannot be registered by ComponentBased applications.

    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.

    Remarks

    This class cannot be registered by ComponentBased applications.

    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.

    Remarks

    This class cannot be registered by ComponentBased applications.

    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
    System.Threading.Tasks.Task<TResult><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.

    Events

    View Source

    DeviceOrientationChanged

    Occurs when the device orientation is changed.

    Declaration
    public event EventHandler<DeviceOrientationEventArgs> DeviceOrientationChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><DeviceOrientationEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    LocaleChanged

    Occurs when the system language is chagned.

    Declaration
    public event EventHandler<LocaleChangedEventArgs> LocaleChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><LocaleChangedEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    LowBattery

    Occurs when the system battery is low.

    Declaration
    public event EventHandler<LowBatteryEventArgs> LowBattery
    Event Type
    Type Description
    System.EventHandler<TEventArgs><LowBatteryEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    LowMemory

    Occurs when the system memory is low.

    Declaration
    public event EventHandler<LowMemoryEventArgs> LowMemory
    Event Type
    Type Description
    System.EventHandler<TEventArgs><LowMemoryEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    RegionFormatChanged

    Occurs when the region format is changed.

    Declaration
    public event EventHandler<RegionFormatChangedEventArgs> RegionFormatChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><RegionFormatChangedEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    View Source

    SuspendedStateChanged

    Occurs when the device orientation is changed.

    Declaration
    public event EventHandler<SuspendedStateEventArgs> SuspendedStateChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><SuspendedStateEventArgs>
    Remarks

    This class cannot be registered by ComponentBased applications.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX