beng

Untitled

Sep 10th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Value type describing what happened on the device.
  2. @class JSDeviceEvent;
  3.  
  4. // Protocol implemented by objects interested in being notified when a device event happens.
  5. @protocol JSDeviceEventObserver
  6.  
  7. - (void)observeDeviceEvent:(JSDeviceEvent *);
  8.  
  9. @end
  10.  
  11. // Object that actually listens for device events and tells interested observers about them.
  12. @interface JSDeviceEventController
  13.  
  14. - (void)addEventObserver:(id<JSDeviceEventObserver>)eventObserver;
  15. - (void)removeEventObserver:(id<JSDeviceEventObserver>)eventObserver;
  16.  
  17. @end
Advertisement
Add Comment
Please, Sign In to add comment