Android SDK Version
  • java.lang.Object
    • com.facebook.ProfileTracker

public abstract class ProfileTracker
extends java.lang.Object
This class can be extended to receive notifications of profile changes. The stopTracking() method should be called in the onDestroy() method of the receiving Activity or Fragment.
Constructor Summary
Constructor and Description
ProfileTracker()
Constructor.
Method Summary
Modifier and TypeMethod and Description
booleanisTracking()
Gets whether the tracker is tracking the current access token.
protected abstract voidonCurrentProfileChanged(Profile oldProfile, Profile currentProfile)
The method that will be called when the profile changes.
voidstartTracking()
Starts tracking the current profile.
voidstopTracking()
Stops tracking the current profile.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

ProfileTracker

public ProfileTracker()
Constructor.
Method Detail

onCurrentProfileChanged

protected abstract void onCurrentProfileChanged(Profile oldProfile,
                                                Profile currentProfile)
The method that will be called when the profile changes.
Parameters:
oldProfile - The profile before the change.
currentProfile - The new profile.

startTracking

public void startTracking()
Starts tracking the current profile.

stopTracking

public void stopTracking()
Stops tracking the current profile.

isTracking

public boolean isTracking()
Gets whether the tracker is tracking the current access token.
Returns:
true if the tracker is the tracking the current access token, false if not