public interface ActivityAware
Activity they're scoped to.| Modifier and Type | Method and Description |
|---|---|
void |
setActivity(android.app.Activity activity)
Sets the
Activity, the bean is scoped to. |
void setActivity(android.app.Activity activity)
Activity, the bean is scoped to.
The Activity is set again when the same bean is obtained for a new Activity, e.g. after a
configuration-change. At the end of the Activity's lifecycle, this method is called with null to
clear any references to the Activity and prevent memory-leaks.
activity - the Activity, the bean is scoped to