SharedPreferencesTokenCachingStrategy
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。
伸延:TokenCachingStrategy
套件:facebook
建構函式
SharedPreferencesTokenCachingStrategy(Context)

Creates a default SharedPreferencesTokenCachingStrategy instance that provides access to a single set of token information.

public SharedPreferencesTokenCachingStrategy(Context context)
參數說明
contextThe Context object to use to get the SharedPreferences object.
SharedPreferencesTokenCachingStrategy(Context, String)

Creates a SharedPreferencesTokenCachingStrategy instance that is distinct for the passed in cacheKey.

public SharedPreferencesTokenCachingStrategy(Context context, String cacheKey)
參數說明
contextThe Context object to use to get the SharedPreferences object.
cacheKeyIdentifies a distinct set of token information.