Skip to content

PKObject.addListenerForNotification

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of PKObject)

Return Type: void

Parameters: notification (string), listener (function)

Notifications are generated whenever an object desires it; listeners are notified whenever the notification is fired using notify.

Usage

anObject.addListenerForNotification ( "boundsChanged", 
    function ( self, notification )
    {
        // self is the notifying object
        // notification is the notification
    }
);

Version

0.3 Introduced; docs valid

Clone this wiki locally