Session.Builder
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。

Builder class used to create a Session.

延伸:Object
套件:facebook
建構函式
Session.Builder(Context)

Constructs a new Builder associated with the context.

public Session.Builder(Context context)
參數說明
contextThe Activity or Service starting the Session
執行個體方法
setApplicationId(String)

Sets the application id for the Session.

public Builder setApplicationId(String applicationId)
參數說明
applicationIdThe application id
Returns
The Builder instance
setTokenCachingStrategy(TokenCachingStrategy)

Sets the TokenCachingStrategy for the Session.

public Builder setTokenCachingStrategy(TokenCachingStrategy tokenCachingStrategy)
參數說明
tokenCachingStrategyThe token cache to use
Returns
The Builder instance
build()

Build the Session.

public Session build()
Returns
A new Session