public class Parse
extends java.lang.Object
Parse class contains static functions that handle global configuration for the Parse
library.| Modifier and Type | Class and Description |
|---|---|
static class |
Parse.Configuration
Represents an opaque configuration for the
Parse SDK configuration. |
| Modifier and Type | Field and Description |
|---|---|
static int |
LOG_LEVEL_DEBUG |
static int |
LOG_LEVEL_ERROR |
static int |
LOG_LEVEL_INFO |
static int |
LOG_LEVEL_NONE |
static int |
LOG_LEVEL_VERBOSE |
static int |
LOG_LEVEL_WARNING |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkInit()
Used by Parse LiveQuery
|
static void |
enableLocalDatastore(android.content.Context context)
Enable pinning in your application.
|
static android.content.Context |
getApplicationContext() |
static int |
getLogLevel()
Returns the level of logging that will be displayed.
|
static java.io.File |
getParseCacheDir(java.lang.String subDir) |
static void |
initialize(Parse.Configuration configuration)
Authenticates this client as belonging to your application.
|
static boolean |
isLocalDatastoreEnabled() |
static void |
setLogLevel(int logLevel)
Sets the level of logging to display, where each level includes all those below it.
|
public static final int LOG_LEVEL_VERBOSE
public static final int LOG_LEVEL_DEBUG
public static final int LOG_LEVEL_INFO
public static final int LOG_LEVEL_WARNING
public static final int LOG_LEVEL_ERROR
public static final int LOG_LEVEL_NONE
public static void enableLocalDatastore(android.content.Context context)
enableLocalDatastore(Context) before
initialize(Configuration):
public class MyApplication extends Application {
public void onCreate() {
Parse.enableLocalDatastore(this);
Parse.initialize(this);
}
}
context - The active Context for your application.public static boolean isLocalDatastoreEnabled()
public static void initialize(Parse.Configuration configuration)
Parse.initialize in your Application's onCreate method:
public class MyApplication extends Application {
public void onCreate() {
Parse.initialize(configuration);
}
}
configuration - The configuration for your application.public static android.content.Context getApplicationContext()
public static java.io.File getParseCacheDir(java.lang.String subDir)
public static void checkInit()
public static int getLogLevel()
public static void setLogLevel(int logLevel)
LOG_LEVEL_NONE. Please ensure this is set to LOG_LEVEL_ERROR
or LOG_LEVEL_NONE before deploying your app to ensure no sensitive information is
logged. The levels are:
logLevel - The level of logcat logging that Parse should do.