AccessTokenTracker
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.

This class can be extended to receive notifications of access token changes. The AccessTokenTracker.stopTracking() method should be called in the onDestroy() method of the receiving Activity or Fragment.

Mở rộng:Object
Gói:facebook
Xây dựng
AccessTokenTracker()

The constructor.

public AccessTokenTracker()
Phương thức thực thể
onCurrentAccessTokenChanged(AccessToken, AccessToken)

The method that will be called with the access token changes.

protected abstract void onCurrentAccessTokenChanged(AccessToken oldAccessToken, AccessToken currentAccessToken)
Thông sốMô tả
oldAccessTokenThe access token before the change.
currentAccessTokenThe new access token.
startTracking()

Starts tracking the current access token

public void startTracking()
stopTracking()

Stops tracking the current access token.

public void stopTracking()
isTracking()

Gets whether the tracker is tracking the current access token.

public boolean isTracking()
Returns
True if the tracker is tracking the current access token, false if not