|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.facebook.internal.SessionTracker
public class SessionTracker
com.facebook.internal is solely for the use of other packages within the Facebook SDK for Android. Use of any of the classes in this package is unsupported, and they may be modified or removed without warning at any time.
Constructor Summary | |
---|---|
SessionTracker(Context context,
Session.StatusCallback callback)
Constructs a SessionTracker to track the active Session object. |
|
SessionTracker(Context context,
Session.StatusCallback callback,
Session session,
boolean startTracking)
Constructs a SessionTracker to track the Session object passed in. |
Method Summary | |
---|---|
Session |
getOpenSession()
Returns the current Session that's being tracked if it's open, otherwise returns null. |
Session |
getSession()
Returns the current Session that's being tracked. |
boolean |
isTracking()
Returns whether it's currently tracking the Session. |
boolean |
isTrackingActiveSession()
Returns whether it's currently tracking the active Session. |
void |
setSession(Session newSession)
Set the Session object to track. |
void |
startTracking()
Start tracking the Session (either active or the one given). |
void |
stopTracking()
Stop tracking the Session and remove any callbacks attached to those sessions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionTracker(Context context, Session.StatusCallback callback)
context
- the context object.callback
- the callback to use whenever the active Session's
state changespublic SessionTracker(Context context, Session.StatusCallback callback, Session session, boolean startTracking)
context
- the context object.callback
- the callback to use whenever the Session's state changessession
- the Session object to trackstartTracking
- whether to start tracking the Session right awayMethod Detail |
---|
public Session getSession()
public Session getOpenSession()
public void setSession(Session newSession)
newSession
- the new Session object to trackpublic void startTracking()
public void stopTracking()
public boolean isTracking()
public boolean isTrackingActiveSession()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |