DataContextMediatorTView, TContext Methods |
The DataContextMediatorTView, TContext generic type exposes the following members.
| 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.
|