public class ActivitiesSchedulerLowMemory extends Object implements ActivitiesScheduler, Observer, ApplicationLifecycleListener
Constructor and Description |
---|
ActivitiesSchedulerLowMemory() |
Modifier and Type | Method and Description |
---|---|
Activity |
getLauncher()
Gets the current activities launcher.
|
void |
hide(Activity activity)
Asks to hide an activity.
|
void |
setActivitiesList(ActivitiesList activitiesList)
Sets the activities list to manage.
|
void |
setLauncher(Activity launcher)
Sets the current activities launcher.
|
void |
show(Activity activity)
Asks to show an activity.
|
void |
showLauncher()
Asks to show the current launcher.
|
void |
stateChanged(Application application)
Called whenever an application has changed in the observed applications manager.
|
void |
update()
This method is called whenever the observed object is changed.
|
public Activity getLauncher()
ActivitiesScheduler
getLauncher
in interface ActivitiesScheduler
null
if there is no registered
launcher.public void hide(Activity activity)
ActivitiesScheduler
hide
in interface ActivitiesScheduler
activity
- the activity to hide.public void setActivitiesList(ActivitiesList activitiesList)
activitiesList
- the activitiesList to set.public void setLauncher(Activity launcher)
ActivitiesScheduler
setLauncher
in interface ActivitiesScheduler
launcher
- the launcher to set.public void show(Activity activity) throws NullPointerException
ActivitiesScheduler
show
in interface ActivitiesScheduler
activity
- the activity to show an activity from.NullPointerException
- if the given activity is null
.public void showLauncher()
ActivitiesScheduler
showLauncher
in interface ActivitiesScheduler
public void stateChanged(Application application)
ApplicationLifecycleListener
stateChanged
in interface ApplicationLifecycleListener
application
- the application that has changed.public void update()
Observer
update
in interface Observer
Observable.notifyObservers()
,
SimpleObservable.notifyObserver()