StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
strange.extensions.dispatcher.eventdispatcher.api.IEventBinding Interface Reference

Binding interface for EventDispatcher. More...

Inheritance diagram for strange.extensions.dispatcher.eventdispatcher.api.IEventBinding:
strange.framework.api.IBinding strange.extensions.dispatcher.eventdispatcher.impl.EventBinding

Public Member Functions

EventCallbackType TypeForCallback (EventCallback callback)
 Retrieve the type of the provided callback.
 
EventCallbackType TypeForCallback (EmptyCallback callback)
 Retrieve the type of the provided callback.
 
new IEventBinding Bind (object key)
 Tie this binding to a value key, such as a string or class instance.
 
IEventBinding To (EventCallback callback)
 
IEventBinding To (EmptyCallback callback)
 
- Public Member Functions inherited from strange.framework.api.IBinding
IBinding Bind< T > ()
 Tie this binding to a Type key.
 
IBinding To< T > ()
 Set the Binding's value to a Type.
 
IBinding To (object o)
 Set the Binding's value to a value, such as a string or class instance.
 
IBinding ToName< T > ()
 Qualify a binding using a marker type.
 
IBinding ToName (object o)
 Qualify a binding using a value, such as a string or class instance.
 
IBinding Named< T > ()
 Retrieve a binding if the supplied name matches, by Type.
 
IBinding Named (object o)
 Retrieve a binding if the supplied name matches, by value.
 
void RemoveKey (object o)
 Remove a specific key from the binding.
 
void RemoveValue (object o)
 Remove a specific value from the binding.
 
void RemoveName (object o)
 Remove a name from the binding.
 
IBinding Weak ()
 

Additional Inherited Members

- Properties inherited from strange.framework.api.IBinding
object key [get]
 Get the binding''s key.
 
object name [get]
 Get the binding's name.
 
object value [get]
 Get the binding's value.
 
Enum keyConstraint [get, set]
 Get or set a MANY or ONE constraint on the Key.
 
Enum valueConstraint [get, set]
 Get or set a MANY or ONE constraint on the Value.
 
bool isWeak [get]
 

Detailed Description

Binding interface for EventDispatcher.

EventBindings technically allow any Key, but require either an EmptyCallback (no arguments) or an EventCallback (one argument).

The IEvent only accepts strings as keys, so in the standard MVCSContext setup, your EventBinder keys should also be strings.

See Also
strange.extensions.dispatcher.eventdispatcher.api.IEvent

The documentation for this interface was generated from the following file: