-
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.
An important feature of these annotations, is that if the specified Event doesn't exists, it will be automatically generated by the annotations.
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
Sponsored by DSpot Sp. z o.o. Contact us at info@dspot.com.pl