public class BoxConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static android.content.Context |
APPLICATION_CONTEXT
Application context to be used by box sessions when necessary to show ui.
|
static java.lang.String |
CLIENT_ID
Client id used for the OAuth flow
|
static java.lang.String |
CLIENT_SECRET
Client secret used for the OAuth flow
|
static java.lang.String |
DEVICE_ID
Device id used for the OAuth flow and refreshing
|
static java.lang.String |
DEVICE_NAME
Device name used for the OAuth flow and refreshing
|
static boolean |
ENABLE_BOX_APP_AUTHENTICATION
Sets whether sessions should authentivate with the Box Application if available.
|
static boolean |
IS_DEBUG
Flag for whether the app is currently run in debug mode.
|
static boolean |
IS_LOG_ENABLED
Flag for whether logging is enabled.
|
static java.lang.String |
REDIRECT_URL
The redirect url used with OAuth flow
|
static java.lang.String |
SDK_VERSION
Version string
|
| Constructor and Description |
|---|
BoxConfig() |
| Modifier and Type | Method and Description |
|---|---|
static BoxCache |
getCache()
Returns the cache implementation that has been set for the SDK
|
static void |
setCache(BoxCache cache)
Sets the cache implementation that BoxRequests that implement
BoxCacheableRequest
will use when the fromCache flag is enabled |
public static boolean IS_LOG_ENABLED
public static boolean IS_DEBUG
BoxSession
object and is determined from the ApplicationInfo.FLAG_DEBUGGABLEpublic static java.lang.String CLIENT_ID
public static java.lang.String CLIENT_SECRET
public static boolean ENABLE_BOX_APP_AUTHENTICATION
public static java.lang.String REDIRECT_URL
public static java.lang.String DEVICE_NAME
public static java.lang.String DEVICE_ID
public static android.content.Context APPLICATION_CONTEXT
public static java.lang.String SDK_VERSION
public static void setCache(BoxCache cache)
BoxCacheableRequest
will use when the fromCache flag is enabledcache - the cache implementation to usepublic static BoxCache getCache()