This class can be extended to receive notifications of profile changes. The ProfileTracker.stopTracking() method should be called in the onDestroy() method of the receiving Activity or Fragment.
الإضافات: | Object |
الحزمة: | facebook |
ProfileTracker()
Constructor.
public ProfileTracker()
onCurrentProfileChanged(Profile, Profile)
The method that will be called when the profile changes.
protected abstract void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile)
المعلمة | الوصف |
---|---|
oldProfile | The profile before the change. |
currentProfile | The new profile. |
startTracking()
Starts tracking the current profile.
public void startTracking()
stopTracking()
Stops tracking the current profile.
public void stopTracking()
isTracking()
Gets whether the tracker is tracking the current access token.
public boolean isTracking()