|| | |||Browse by category|
How do I make an interactor permanent?
Manager view interactors are activated in a view by being pushed onto a stack of interactors for that view. The top interactor on the stack is the active one. The others are just waiting.
In JViews, some types of interactors (like
IlvSelectInteractor) are permanent. They remain on the interactor stack for a view until they are explicitly popped off.
However, most types of interactors are transient. They will automatically pop off the stack after they have been used one time.
You may encounter the need to make a transient interactor permanent. For those interactor classes that implement
IlvPermanentInteractorInterface, you can simply call the
setPermanent() method to make the interactor sticky:
IlvPermanentInteractorInterface also provides a method for testing the current state of the interactor: