Class OneShotService

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.Gadget.dll

    OneShotService performs tasks that the NUIGadget processes in parallel during the PreCreate state.

    public abstract class OneShotService : IDisposable
    Inheritance
    object
    OneShotService

    Constructors

    View Source

    OneShotService(string, bool)

    Initializes the OneShotService.

    Declaration
    public OneShotService(string name, bool autoClose)
    Parameters
    Type Name Description
    string name

    Unique identifier for the service instance

    bool autoClose

    Whether to automatically close the service after execution

    Properties

    View Source

    AutoClose

    Gets the AutoClose

    Declaration
    public bool AutoClose { get; }
    Property Value
    Type Description
    bool
    Remarks

    This property is a variable as to whether to automatically make OneShotService Destroy after execution

    View Source

    Name

    Gets the OneShotService's name

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

    This property is the name(identifier) of the worker thread on which OneShotService operates.

    View Source

    State

    Gets the current lifecycle state of OneShotService

    Declaration
    public OneShotServiceLifecycleState State { get; }
    Property Value
    Type Description
    OneShotServiceLifecycleState

    Methods

    View Source

    Dispose()

    Releases all resources used by the OneShotService class.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    if true, dispose any disposable objets. If false, does not dispose disposable objects

    View Source

    ~OneShotService()

    Finalizer of the OneShotService class.

    Declaration
    protected ~OneShotService()
    View Source

    OnCreate()

    Override this method to define the behavior when the OneShotService is created. Calling 'base.OnCreate()' is necessary in order to emit the 'OneShotServiceLifecycleState.Created` state

    Declaration
    protected virtual void OnCreate()
    View Source

    OnDestroy()

    Override this method to define the behavior when the OneShotService is destroyed. Calling 'base.OnDestroyed()' is necessary in order to emit the 'OneShotServiceLifecycleState.Destroyed` state

    Declaration
    protected virtual void OnDestroy()
    View Source

    Quit(bool)

    Stops the OneShotService execution and releases resources.

    Declaration
    public void Quit(bool waitForJoin)
    Parameters
    Type Name Description
    bool waitForJoin

    Whether to wait for complete service termination

    View Source

    Run()

    Starts the OneShotService execution on a worker thread. Initializes the service task and triggers the OnCreate event. If AutoClose is enabled, automatically destroys the service after execution.

    Declaration
    public void Run()

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX