public abstract class ProfileTracker
extends java.lang.Object
stopTracking()
method should be called in the onDestroy() method of the receiving Activity or
Fragment.Constructor and Description |
---|
ProfileTracker()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTracking()
Gets whether the tracker is tracking the current access token.
|
protected abstract void |
onCurrentProfileChanged(Profile oldProfile,
Profile currentProfile)
The method that will be called when the profile changes.
|
void |
startTracking()
Starts tracking the current profile.
|
void |
stopTracking()
Stops tracking the current profile.
|
protected abstract void onCurrentProfileChanged(Profile oldProfile, Profile currentProfile)
oldProfile
- The profile before the change.currentProfile
- The new profile.public void startTracking()
public void stopTracking()
public boolean isTracking()