TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IEventGeneric in Tinman.Core.Util

The IEventGeneric class implements the observer pattern.

interface IEventGeneric with <out T> as class
  extends IEvent
  base of EventGeneric

Attributes

LifecycleState

Returns the lifecycle state of this object.

property LifecycleState { get }
type LifecycleState
value The lifecycle state.
inherited ILifecycleState.LifecycleState

Methods

AcquireTry

Acquires a strong reference to this disposable object.

[OwnerReturn, ThreadSafe]
method AcquireTry ()
type IDisposable
returns this if a new strong reference has been acquired, null if this object is already being disposed.
inherited IDisposable.AcquireTry

Remarks:

The object will not be actually disposed by calls to Dispose when there is at least one strong reference left. Code that calls the AcquireTry method is responsible for calling the Dispose method accordingly.

This method is not intended to be used in performance-critical code. It should only be used to high-level resource management.

AddDelegate

Adds a new listener to this event.

[ThreadSafe]
method AddDelegate (EventDelegate listener)
params listener [not-null] The listener to add.
inherited IEvent.AddDelegate

Remarks:

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

AddDelegateGeneric

Adds a new listener to this event.

[ThreadSafe]
method AddDelegateGeneric (EventDelegateGeneric<T> listener)
params listener [not-null] The listener to add.

Remarks:

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

AddListener

Adds a new listener to this event.

[ThreadSafe]
method AddListener (IEventListener listener)
params listener [not-null] The listener to add.
inherited IEvent.AddListener

Remarks:

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

AddListenerGeneric

Adds a new listener to this event.

[ThreadSafe]
method AddListenerGeneric (IEventListenerGeneric<T> listener)
params listener [not-null] The listener to add.

Remarks:

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

Dispose

Releases all resources held by this object if there are no more strong references to it, decrements the reference counter by one otherwise.

[Dispose, OwnerThis, ThreadSafe]
method Dispose ()
inherited IDisposable.Dispose

Remarks:

The Dispose method silently returns if the object has already been disposed.

RemoveDelegate

Removes the given listener from the event.

[ThreadSafe]
method RemoveDelegate (EventDelegate listener)
params listener [not-null] The listener to remove.
inherited IEvent.RemoveDelegate

RemoveDelegateGeneric

Removes the given listener from the event.

[ThreadSafe]
method RemoveDelegateGeneric (EventDelegateGeneric<T> listener)
params listener [not-null] The listener to remove.

RemoveListener

Removes the given listener from the event.

[ThreadSafe]
method RemoveListener (IEventListener listener)
params listener [not-null] The listener to remove.
inherited IEvent.RemoveListener

RemoveListenerGeneric

Removes the given listener from the event.

[ThreadSafe]
method RemoveListenerGeneric (IEventListenerGeneric<T> listener)
params listener [not-null] The listener to remove.