Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 966 Bytes

addWeakEventListener.md

File metadata and controls

30 lines (23 loc) · 966 Bytes
title addWeakEventListener
titleTemplate title - API / NativeScript
contributors false
function addWeakEventListener(
   source: Observable, 
   eventName: string, 
   handler: (eventData: EventData) => void, 
   target: any): void;

Defined in: ui/core/weak-event-listener/index.d.ts:10

Attaches a WeakEventListener.

Parameters

Parameter Type Description
source Observable Observable class which emits the event.
eventName string The event name.
handler (eventData: EventData) => void The function which should be called when event occurs.
target any Subscriber (target) of the event listener. It will be used as a thisArg in the handler function.

Returns

void