| java.lang.Object | |
| ↳ | com.facebook.common.activitylistener.ActivityListenerManager |
Registers ActivityListener with ActivityListener.
A WeakReference is used to wrap an ActivityVisibilityListener. When it is nullified ActivityListener is automatically removed from the listened ListenableActivity.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ActivityListenerManager() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static ListenableActivity | getListenableActivity(Context context) | ||||||||||
| static void |
register(ActivityListener activityListener, Context context)
If given context is an instance of ListenableActivity then creates new instance of
WeakReferenceActivityListenerAdapter and adds it to activity's listeners
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
If given context is an instance of ListenableActivity then creates new instance of WeakReferenceActivityListenerAdapter and adds it to activity's listeners