Language

EventHelper Class

Definition

Maintains weakly referenced listener implementors for generated event accessors.

public static class EventHelper
type EventHelper = class
Inheritance
EventHelper

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Methods

Name Description
AddEventHandler<TInterface,TImplementor>(WeakReference, Func<TImplementor>, Action<TInterface>, Action<TImplementor>)

Reuses or creates a listener implementor, then invokes the handler-add callback.

RemoveEventHandler<TInterface,TImplementor>(WeakReference, Func<TImplementor,Boolean>, Action<TInterface>, Action<TImplementor>)

Removes a handler and unregisters an empty listener implementor.

Applies to