js-util

Home > rc-js-util > IBroadcastEvent > addTemporaryListener

IBroadcastEvent.addTemporaryListener() method

Signature:

addTemporaryListener(listener: TListener<TKey, TArgs>): () => void;

Parameters

Parameter Type Description
listener TListener<TKey, TArgs>  

Returns:

() => void

a callback to unregister the listener.