ProfileTracker
有此級別的更新版本。前往查看 最新版本。

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)
參數說明
oldProfileThe profile before the change.
currentProfileThe 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()
Returns
True if the tracker is the tracking the current access token, false if not