StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | List of all members
strange.extensions.mediation.api.IView Class Reference

Monobehaviours must implement this interface in order to be injectable. More...

Inheritance diagram for strange.extensions.mediation.api.IView:
strange.extensions.context.api.IContextView strange.extensions.mediation.impl.View strange.extensions.context.impl.ContextView strange.extensions.mediation.impl.EventView

Properties

bool requiresContext [get, set]
 Indicates whether the View can work absent a context. More...
 
bool registeredWithContext [get, set]
 Indicates whether this View has been registered with a Context.
 
bool autoRegisterWithContext [get]
 Exposure to code of the registerWithContext (Inspector) boolean. If false, the View won't try to register.
 

Detailed Description

Monobehaviours must implement this interface in order to be injectable.

To contact the Context, the View must be able to find it. View handles this with bubbling.

Property Documentation

bool strange.extensions.mediation.api.IView.requiresContext
getset

Indicates whether the View can work absent a context.

Leave this value true most of the time. If for some reason you want a view to exist outside a context you can set it to false. The only difference is whether an error gets generated.


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