Session.Builder
Kelas ini tidak tersedia lagi di versi SDK terbaru.

Builder class used to create a Session.

Perpanjang:Object
Paket:facebook
Konstruktor
Session.Builder(Context)

Constructs a new Builder associated with the context.

public Session.Builder(Context context)
ParameterKeterangan
contextThe Activity or Service starting the Session
Metode Instance
setApplicationId(String)

Sets the application id for the Session.

public Builder setApplicationId(String applicationId)
ParameterKeterangan
applicationIdThe application id
Returns
The Builder instance
setTokenCachingStrategy(TokenCachingStrategy)

Sets the TokenCachingStrategy for the Session.

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

Build the Session.

public Session build()
Returns
A new Session