Show / Hide Table of Contents

    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.

    public abstract class ComponentBasedApplication : Application, IDisposable
    Inheritance
    Object
    Application
    ComponentBasedApplication
    Derived
    EFLComponentBasedApplication
    EFLComponentBasedApplication
    Implements
    IDisposable

    Constructors

    View Source

    ComponentBasedApplication(IDictionary<Type, String>)

    Initializes the ComponentBasedApplicationBase class.

    Declaration
    public ComponentBasedApplication(IDictionary<Type, string> typeInfo)
    Parameters
    Type Name Description
    IDictionary<Type, 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

    View Source

    Exit()

    Exits the main loop of the application.

    Declaration
    public override void Exit()
    Overrides
    Application.Exit()
    API Level: 6
    View Source

    OnExit()

    This method will be called to exit main-loop

    Declaration
    protected virtual void OnExit()
    API Level: 6
    View Source

    OnFinished()

    This method will be called after exiting main-loop

    Declaration
    protected virtual void OnFinished()
    API Level: 6
    View Source

    OnInit(String[])

    This method will be called before running main-loop

    Declaration
    protected virtual void OnInit(string[] args)
    Parameters
    Type Name Description
    String[] args
    API Level: 6
    View Source

    OnRun()

    This method will be called to start main-loop

    Declaration
    protected abstract void OnRun()
    API Level: 6
    View Source

    RegisterComponent(Type, String)

    Registers a component.

    Declaration
    public void RegisterComponent(Type compType, string compId)
    Parameters
    Type Name Description
    Type compType

    Class type

    String compId

    Component ID

    Exceptions
    Type Condition
    ArgumentException

    Thrown when component type is already added or not sub-class of FrameComponent or ServiceComponent

    API Level: 6
    View Source

    Run(String[])

    Runs the application's main loop.

    Declaration
    public override void Run(string[] args)
    Parameters
    Type Name Description
    String[] args

    Arguments from commandline.

    Overrides
    Application.Run(String[])
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when component type is already added to the component.

    API Level: 6

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX