ParseClientConfiguration

@interface ParseClientConfiguration : NSObject <NSCopying>

The ParseClientConfiguration represents the local configuration of the SDK to connect to the server with.

These configurations can be stored, copied, and compared, but cannot be safely changed once the SDK is initialized.

Use this object to construct a configuration for the SDK in your application, and pass it to Parse.+initializeWithConfiguration:.

  • The Parse.com application id to configure the SDK with.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *applicationId;
  • The Parse.com client key to configure the SDK with.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *clientKey;
  • The URL of the server that is being used by the SDK. Defaults to https://api.parse.com/1

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull server;
  • Whether or not to enable pinning in the SDK.

    The default value is NO.

    Declaration

    Objective-C

    @property (readonly, getter=isLocalDatastoreEnabled, assign, nonatomic)
        BOOL localDatastoreEnabled;
  • When set, enables data sharing with an application group identifier.

    After enabling - Local Datastore, PFUser.+currentUser, PFInstallation.+currentInstallation and all eventually commands are going to be available to every application/extension in a group that have the same Parse applicationId.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSString *applicationGroupIdentifier;
  • When set, controls the bundle identifier of the parent bundle to connect to.

    Warning

    This property should only be set from inside an extension environment.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSString *containingApplicationBundleIdentifier;
  • The maximum number of retry attempts to make upon a failed network request.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) NSUInteger networkRetryAttempts;
  • Create a new SDK configuration object. This will create a temporarily modifiable configuration, and pass it to a block to be initialized.

    Example usage:

    [ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
        configuration.applicationId = ...;
        configuration.clientKey = ...;
        configuration.localDatastoreEnabled = ...;
    }];
    

    Declaration

    Objective-C

    + (nonnull instancetype)configurationWithBlock:
            (nonnull void (^)(id<ParseMutableClientConfiguration> _Nonnull))
                configurationBlock;

    Parameters

    configurationBlock

    A block used to modify the created configuration.

    Return Value

    A newly created configuration.