Show / Hide Table of Contents

    Class SmartEvent<TEventArgs>

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    It inherits IInvalidatable. The event with TEventArgs for EvasObject. EvasObject can elect the SmartEvent occurring inside them, to be reported back to their users via delegates. This way, you can extend EvasObject's own EvasObjectEvent. They are defined by an event string, which identifies them uniquely.

    public class SmartEvent<TEventArgs> : IInvalidatable, IDisposable where TEventArgs : EventArgs
    Inheritance
    Object
    SmartEvent<TEventArgs>
    Implements
    IInvalidatable
    IDisposable

    Constructors

    View Source

    SmartEvent(EvasObject, String)

    Creates and initializes a new instance of the SmartEvent class.

    Declaration
    public SmartEvent(EvasObject sender, string eventName)
    Parameters
    Type Name Description
    EvasObject sender

    The source of the event.

    String eventName

    The event name.

    API Level: preview
    View Source

    SmartEvent(EvasObject, String, SmartEvent<TEventArgs>.SmartEventInfoParser)

    Creates and initializes a new instance of the SmartEvent class.

    Declaration
    public SmartEvent(EvasObject sender, string eventName, SmartEvent<TEventArgs>.SmartEventInfoParser parser)
    Parameters
    Type Name Description
    EvasObject sender

    The source of the event.

    String eventName

    The event name.

    SmartEvent.SmartEventInfoParser<> parser

    The event parameter.

    API Level: preview

    Methods

    View Source

    Dispose()

    Destroys the current object.

    Declaration
    public void Dispose()
    API Level: preview
    View Source

    Dispose(Boolean)

    Releases all the resources currently used by this instance.

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

    true if the managed resources should be disposed, otherwise false.

    API Level: preview
    View Source

    Finalize()

    Destroys the SmartEvent object.

    Declaration
    protected void Finalize()
    View Source

    MakeInvalidate()

    Makes the current instance invalidate.

    Declaration
    public void MakeInvalidate()
    API Level: preview

    Events

    View Source

    On

    Adds or removes a delegate for the event.

    Declaration
    public event EventHandler<TEventArgs> On
    Event Type
    Type Description
    EventHandler<TEventArgs>
    API Level: preview

    Implements

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