PublicSimpleEvent

From Web Computing Documentation
(Difference between revisions)
Jump to: navigation, search
(Interface overview)
(Public functions)
 
Line 24: Line 24:
   
 
<div class="class_function_definition">
 
<div class="class_function_definition">
'''subscribe''' (func : Void->Void)
+
'''unsubscribe''' (func : Void->Void)
 
</div>
 
</div>
 
:{|
 
:{|

Latest revision as of 13:33, 16 August 2011

interface PublicSimpleEvent

  • henkolib
    • henkolib.events
      • henkolib.events.PublicSimpleEvent

[edit] Interface overview

This is a public interface for a SimpleEvent. Through this interface anyone can subscribe to or unscribscribe from an Event. The actual Event object should be kept private and should be published by this interface.

[edit] Public functions

subscribe (func : Void->Void)

func Callback function.

Subscribe the given callback function.

unsubscribe (func : Void->Void)

func Callback function.

Unsubscribe the given callback function

Personal tools
Modules