![]() | DataContextMediatorTView, TContext Class |
Namespace: Slash.Unity.DataBind.StrangeIoC
public abstract class DataContextMediator<TView, TContext> : Mediator where TView : DataContextView<TContext> where TContext : Context
The DataContextMediatorTView, TContext type exposes the following members.
Name | Description | |
---|---|---|
![]() | DataContextMediatorTView, TContext | Initializes a new instance of the DataContextMediatorTView, TContext class |
Name | Description | |
---|---|---|
![]() | Context |
Current context of the view/mediator.
|
![]() | View |
View which belongs to the mediator.
|
Name | Description | |
---|---|---|
![]() | OnRegister |
This method fires immediately after injection.
Override to perform the actions you might normally perform in a constructor.
(Overrides MediatorOnRegister.) |
![]() | OnRemove |
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.) |
![]() | RegisterContext |
Called when the mediator should register itself to the specified context.
E.g. add listeners to events.
|
![]() | UnregisterContext |
Called when the mediator should unregister itself from the specified context.
E.g. remove listeners to events.
|