Click or drag to resize

DataContextMediatorTView, TContext Class

Base class for a mediator of a DataContextView.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          strange.extensions.mediation.implMediator
            Slash.Unity.DataBind.StrangeIoCDataContextMediatorTView, TContext

Namespace:  Slash.Unity.DataBind.StrangeIoC
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class DataContextMediator<TView, TContext> : Mediator
where TView : DataContextView<TContext>
where TContext : Context

Type Parameters

TView
Type of view.
TContext
Type of context.

The DataContextMediatorTView, TContext type exposes the following members.

Constructors
  NameDescription
Protected methodDataContextMediatorTView, TContext
Initializes a new instance of the DataContextMediatorTView, TContext class
Top
Properties
  NameDescription
Public propertyContext
Current context of the view/mediator.
Public propertyView
View which belongs to the mediator.
Top
Methods
  NameDescription
Public methodOnRegister
This method fires immediately after injection. Override to perform the actions you might normally perform in a constructor.
(Overrides MediatorOnRegister.)
Public methodOnRemove
This method fires just before a GameObject will be destroyed. Override to clean up any listeners, or anything else that might keep the View/Mediator pair from being garbage collected.
(Overrides MediatorOnRemove.)
Protected methodRegisterContext
Called when the mediator should register itself to the specified context. E.g. add listeners to events.
Protected methodUnregisterContext
Called when the mediator should unregister itself from the specified context. E.g. remove listeners to events.
Top
See Also