com.facebook
Class Session.Builder

java.lang.Object
  extended by com.facebook.Session.Builder
Enclosing class:
Session

public static final class Session.Builder
extends Object

Builder class used to create a Session.


Constructor Summary
Session.Builder(Context context)
          Constructs a new Builder associated with the context.
 
Method Summary
 Session build()
          Build the Session.
 Session.Builder setApplicationId(String applicationId)
          Sets the application id for the Session.
 Session.Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
          Sets the TokenCachingStrategy for the Session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session.Builder

public Session.Builder(Context context)
Constructs a new Builder associated with the context.

Parameters:
context - the Activity or Service starting the Session
Method Detail

setApplicationId

public Session.Builder setApplicationId(String applicationId)
Sets the application id for the Session.

Parameters:
applicationId - the application id
Returns:
the Builder instance

setTokenCachingStrategy

public Session.Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
Sets the TokenCachingStrategy for the Session.

Parameters:
tokenCachingStrategy - the token cache to use
Returns:
the Builder instance

build

public Session build()
Build the Session.

Returns:
a new Session