public class

ActivityListenerManager

extends Object
java.lang.Object
   ↳ com.facebook.common.activitylistener.ActivityListenerManager

Class Overview

Registers ActivityListener with ActivityListener.

A WeakReference is used to wrap an ActivityVisibilityListener. When it is nullified ActivityListener is automatically removed from the listened ListenableActivity.

Summary

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

Public Constructors

public ActivityListenerManager ()

Public Methods

public static ListenableActivity getListenableActivity (Context context)

public 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