Session.Builder
Cette classe n’est plus disponible dans la version la plus récente du SDK.

Builder class used to create a Session.

Prolonge :Object
Package :facebook
Constructeurs
Session.Builder(Context)

Constructs a new Builder associated with the context.

public Session.Builder(Context context)
ParamètreDescription
contextThe Activity or Service starting the Session
Méthodes d’instance
setApplicationId(String)

Sets the application id for the Session.

public Builder setApplicationId(String applicationId)
ParamètreDescription
applicationIdThe application id
Returns
The Builder instance
setTokenCachingStrategy(TokenCachingStrategy)

Sets the TokenCachingStrategy for the Session.

public Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
ParamètreDescription
tokenCachingStrategyThe token cache to use
Returns
The Builder instance
build()

Build the Session.

public Session build()
Returns
A new Session