Click or drag to resize

DataContextMediatorTView, TContext Methods

The DataContextMediatorTView, TContext generic type exposes the following members.

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