-
Notifications
You must be signed in to change notification settings - Fork 25
Events and Actions in Model Injection
When injecting a model, there's 4 annotations available that can be used to modulate the injection process. The annotations that need an event, also require to annotate the enclosing class with @UseEventBus.
This annotation takes as parameter an event class. It will inject the field only when the event is received, avoiding injecting the class when the class is loading (similar than a Lazy load, but this one is triggered with an event).
This annotation takes as parameter an event class. It will inject the field when an event is received.
This annotation takes as parameter an event class. It will put the field when an event is received.
This annotation takes as parameter an Id. It will put the field when the view with the provided Id be clicked.
See also
- [Events and Models Example](Events and Models Example)
Sponsored by DSpot Sp. z o.o. Contact us at info@dspot.com.pl