ParseConfiguration

public struct ParseConfiguration

The Configuration for a Parse client.

  • Create a Parse Swift configuration.

    Declaration

    Swift

    public init(applicationId: String,
                clientKey: String? = nil,
                masterKey: String? = nil,
                serverURL: URL,
                liveQueryServerURL: URL? = nil,
                allowCustomObjectId: Bool = false,
                keyValueStore: ParseKeyValueStore? = nil,
                authentication: ((URLAuthenticationChallenge,
                                  (URLSession.AuthChallengeDisposition,
                                   URLCredential?) -> Void) -> Void)? = nil)

    Parameters

    applicationId

    The application id of your Parse application.

    clientKey

    The client key of your Parse application..

    masterKey

    The master key of your Parse application.

    serverURL

    The server URL to connect to Parse Server.

    liveQueryServerURL

    The live query server URL to connect to Parse Server.

    allowCustomObjectId

    Allows objectIds to be created on the client. side for each object. Must be enabled on the server to work.

    keyValueStore

    A key/value store that conforms to the ParseKeyValueStore protocol. Defaults to nil in which one will be created an memory, but never persisted. For Linux, this this is the only store available since there is no Keychain. Linux users should replace this store with an encrypted one.

    authentication

    A callback block that will be used to receive/accept/decline network challenges. Defaults to nil in which the SDK will use the default OS authentication methods for challenges. It should have the following argument signature: (challenge: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void. See Apple’s documentation for more for details.