Method | Description | |
---|---|---|
AddObserver ( string notificationName, System action ) : void | ||
AddObserver ( string notificationName, System |
Adds an observer to listen to specified by notification name
|
|
PostEvent ( string notificationName ) : void |
Posts an event specified by name that does not require any parameters. Observers associated with this event will be called.
|
|
PostEvent ( string notificationName, Parameters, parameters ) : void |
Posts an event specified by name that requires parameters. Observers associated with this event will be called. Requires the parameters class to be passed.
|
|
PrintObservers ( ) : void | ||
RemoveActionAtObserver ( string notificationName, System action ) : void |
Removes the action at observer specified by notification name
|
|
RemoveActionAtObserver ( string notificationName, System |
Removes the action at observer specified by notification name
|
|
RemoveAllObservers ( ) : void |
Removes all observers.
|
|
RemoveObserver ( string notificationName ) : void |
Removes all observers under the specified notification name
|
Method | Description | |
---|---|---|
EventBroadcaster ( ) : System.Collections |
public AddObserver ( string notificationName, System action ) : void | ||
notificationName | string | |
action | System | |
return | void |
public AddObserver ( string notificationName, System |
||
notificationName | string | |
action | System |
|
return | void |
public PostEvent ( string notificationName ) : void | ||
notificationName | string | |
return | void |
public PostEvent ( string notificationName, Parameters, parameters ) : void | ||
notificationName | string | |
parameters | Parameters, | |
return | void |
public RemoveActionAtObserver ( string notificationName, System action ) : void | ||
notificationName | string | Notification name. |
action | System | Action. |
return | void |
public RemoveActionAtObserver ( string notificationName, System |
||
notificationName | string | Notification name. |
action | System |
Action. |
return | void |
public RemoveObserver ( string notificationName ) : void | ||
notificationName | string | Notification name. |
return | void |