扩展: | TokenCachingStrategy |
应用安装包: | facebook |
SharedPreferencesTokenCachingStrategy(Context)
Creates a default SharedPreferencesTokenCachingStrategy instance that provides access to a single set of token information.
public SharedPreferencesTokenCachingStrategy(Context context)
参数 | 描述 |
---|---|
context | The 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)
参数 | 描述 |
---|---|
context | The Context object to use to get the SharedPreferences object. |
cacheKey | Identifies a distinct set of token information. |