public class Parse extends Object
Parse class contains static functions that handle global configuration for the Parse
library.| 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 |
enableLocalDatastore(Context context)
Enable pinning in your application.
|
static int |
getLogLevel()
Returns the level of logging that will be displayed.
|
static void |
initialize(Context context,
String applicationId,
String clientKey)
Authenticates this client as belonging to your application.
|
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(Context context)
Parse.enableLocalDatastore before
Parse.initialize:
public class MyApplication extends Application {
public void onCreate() {
Parse.enableLocalDatastore(this);
Parse.initialize(this, "your application id", "your client key");
}
}
context - The active Context for your application.public static void initialize(Context context, String applicationId, String clientKey)
Parse.initialize in your Application's onCreate method:
public class MyApplication extends Application {
public void onCreate() {
Parse.initialize(this, "your application id", "your client key");
}
}
context - The active Context for your application.applicationId - The application id provided in the Parse dashboard.clientKey - The client key provided in the Parse dashboard.public static void setLogLevel(int logLevel)
Parse.LOG_LEVEL_ERROR. Please ensure this is set to Parse.LOG_LEVEL_ERROR
or Parse.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.public static int getLogLevel()