Class DefaultCoreBackend

    Definition

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

    An abstract class to provide default event handlers for apps.

    public abstract class DefaultCoreBackend : ICoreBackend, IDisposable
    Inheritance
    object
    DefaultCoreBackend
    Implements
    ICoreBackend
    IDisposable

    Constructors

    View Source

    DefaultCoreBackend()

    Constructor of DefaultCoreBackend class.

    Declaration
    public DefaultCoreBackend()

    Fields

    View Source

    Handlers

    Data structure for event handlers.

    Declaration
    protected IDictionary<EventType, object> Handlers
    Field Value
    Type Description
    IDictionary<, ><EventType, object>
    View Source

    LogTag

    Tag string for this class.

    Declaration
    protected static readonly string LogTag
    Field Value
    Type Description
    string

    Methods

    View Source

    AddEventHandler(EventType, Action)

    Adds an event handler.

    Declaration
    public virtual void AddEventHandler(EventType evType, Action handler)
    Parameters
    Type Name Description
    EventType evType

    The type of event.

    Action handler

    The handler method without arguments.

    View Source

    AddEventHandler<TEventArgs>(EventType, Action<TEventArgs>)

    Adds an event handler.

    Declaration
    public virtual void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
    Parameters
    Type Name Description
    EventType evType

    The type of event.

    Action<><TEventArgs> handler

    The handler method with a TEventArgs type argument.

    Type Parameters
    Name Description
    TEventArgs

    The EventArgs type used in arguments of the handler method.

    View Source

    Dispose()

    Releases all resources.

    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 abstract void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    Exit()

    Exits the mainloop of the backend.

    Declaration
    public abstract void Exit()
    View Source

    ~DefaultCoreBackend()

    Finalizer of DefaultCoreBackend class.

    Declaration
    protected ~DefaultCoreBackend()
    View Source

    OnDeviceOrientationChangedNative(IntPtr, IntPtr)

    Default implementation for the device orientation changed event.

    Declaration
    protected virtual void OnDeviceOrientationChangedNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnLocaleChangedNative(IntPtr, IntPtr)

    Default implementation for the system language changed event.

    Declaration
    protected virtual void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnLowBatteryNative(IntPtr, IntPtr)

    Default implementation for the low battery event.

    Declaration
    protected virtual void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnLowMemoryNative(IntPtr, IntPtr)

    Default implementation for the low memory event.

    Declaration
    protected virtual void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnRegionChangedNative(IntPtr, IntPtr)

    Default implementation for the region format changed event.

    Declaration
    protected virtual void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnSuspendedStateChangedNative(IntPtr, IntPtr)

    Default implementation for the device orientation changed event.

    Declaration
    protected virtual void OnSuspendedStateChangedNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    OnTimeZoneChangedNative(IntPtr, IntPtr)

    Default implementation for the time zone changed event.

    Declaration
    protected virtual void OnTimeZoneChangedNative(IntPtr infoHandle, IntPtr data)
    Parameters
    Type Name Description
    IntPtr infoHandle
    IntPtr data
    View Source

    Run(string[])

    Runs the mainloop of the backend.

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

    Implements

    ICoreBackend
    IDisposable

    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