public static final class Parse.Configuration.Builder
extends java.lang.Object
Configuration object.| Constructor and Description |
|---|
Builder(android.content.Context context)
Initialize a bulider with a given context.
|
| Modifier and Type | Method and Description |
|---|---|
Parse.Configuration.Builder |
applicationId(java.lang.String applicationId)
Set the application id to be used by Parse.
|
Parse.Configuration |
build()
Construct this builder into a concrete
Configuration instance. |
Parse.Configuration.Builder |
clientBuilder(OkHttpClient.Builder builder)
Set the
okhttp3.OkHttpClient.Builder to use when communicating with the Parse
REST API |
Parse.Configuration.Builder |
clientKey(java.lang.String clientKey)
Set the client key to be used by Parse.
|
Parse.Configuration.Builder |
enableLocalDataStore()
Enable pinning in your application.
|
Parse.Configuration.Builder |
maxRetries(int maxRetries)
Set the max number of times to retry Parse operations before deeming them a failure
|
Parse.Configuration.Builder |
server(java.lang.String server)
Set the server URL to be used by Parse.
|
public Builder(android.content.Context context)
This context will then be passed through to the rest of the Parse SDK for use during initialization.
context - The active Context for your application. Cannot be null.public Parse.Configuration.Builder applicationId(java.lang.String applicationId)
applicationId - The application id to set.public Parse.Configuration.Builder clientKey(java.lang.String clientKey)
clientKey - The client key to set.public Parse.Configuration.Builder server(java.lang.String server)
server - The server URL to set.public Parse.Configuration.Builder enableLocalDataStore()
public Parse.Configuration.Builder clientBuilder(OkHttpClient.Builder builder)
okhttp3.OkHttpClient.Builder to use when communicating with the Parse
REST API
builder - The client builder, which will be modified for compatibilitypublic Parse.Configuration.Builder maxRetries(int maxRetries)
maxRetries - The maximum number of times to retry. <=0 to never retry commandspublic Parse.Configuration build()
Configuration instance.Configuration object.