Skip to content

Commit 6a496fb

Browse files
committed
Merge pull request #684 from ParsePlatform/nlutsenko.docs.configuration
Improve and fix documentation of ParseClientConfiguration.
2 parents 31d7126 + 07b822d commit 6a496fb

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

Parse/ParseClientConfiguration.h

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ NS_ASSUME_NONNULL_BEGIN
2727
*/
2828
@protocol ParseMutableClientConfiguration <NSObject>
2929

30+
///--------------------------------------
31+
/// @name Connecting to Parse
32+
///--------------------------------------
33+
3034
/**
3135
The Parse.com application id to configure the SDK with.
3236
*/
@@ -37,13 +41,21 @@ NS_ASSUME_NONNULL_BEGIN
3741
*/
3842
@property (nullable, nonatomic, copy) NSString *clientKey;
3943

44+
///--------------------------------------
45+
/// @name Enabling Local Datastore
46+
///--------------------------------------
47+
4048
/**
4149
Whether or not to enable pinning in the SDK.
4250
4351
The default value is `NO`.
4452
*/
4553
@property (nonatomic, assign, readwrite, getter=isLocalDatastoreEnabled) BOOL localDatastoreEnabled;
4654

55+
///--------------------------------------
56+
/// @name Enabling Extensions Data Sharing
57+
///--------------------------------------
58+
4759
/**
4860
When set, enables data sharing with an application group identifier.
4961
@@ -59,14 +71,18 @@ NS_ASSUME_NONNULL_BEGIN
5971
*/
6072
@property (nullable, nonatomic, copy) NSString *containingApplicationBundleIdentifier;
6173

74+
///--------------------------------------
75+
/// @name Other Properties
76+
///--------------------------------------
77+
6278
/**
6379
The maximum number of retry attempts to make upon a failed network request.
6480
*/
6581
@property (nonatomic, assign) NSUInteger networkRetryAttempts;
6682

6783
@end
6884

69-
/*!
85+
/**
7086
The `ParseClientConfiguration` represents the local configuration of the SDK to connect to the server with.
7187
7288
These configurations can be stored, copied, and compared, but cannot be safely changed once the SDK is initialized.
@@ -76,6 +92,10 @@ NS_ASSUME_NONNULL_BEGIN
7692
*/
7793
@interface ParseClientConfiguration : NSObject <NSCopying>
7894

95+
///--------------------------------------
96+
/// @name Connecting to Parse
97+
///--------------------------------------
98+
7999
/**
80100
The Parse.com application id to configure the SDK with.
81101
*/
@@ -86,13 +106,21 @@ NS_ASSUME_NONNULL_BEGIN
86106
*/
87107
@property (nullable, nonatomic, copy, readonly) NSString *clientKey;
88108

109+
///--------------------------------------
110+
/// @name Enabling Local Datastore
111+
///--------------------------------------
112+
89113
/**
90114
Whether or not to enable pinning in the SDK.
91115
92116
The default value is `NO`.
93117
*/
94118
@property (nonatomic, assign, readonly, getter=isLocalDatastoreEnabled) BOOL localDatastoreEnabled;
95119

120+
///--------------------------------------
121+
/// @name Enabling Extensions Data Sharing
122+
///--------------------------------------
123+
96124
/**
97125
When set, enables data sharing with an application group identifier.
98126
@@ -108,19 +136,27 @@ NS_ASSUME_NONNULL_BEGIN
108136
*/
109137
@property (nullable, nonatomic, copy, readonly) NSString *containingApplicationBundleIdentifier;
110138

139+
///--------------------------------------
140+
/// @name Other Properties
141+
///--------------------------------------
142+
111143
/**
112144
The maximum number of retry attempts to make upon a failed network request.
113145
*/
114146
@property (nonatomic, assign, readonly) NSUInteger networkRetryAttempts;
115147

148+
///--------------------------------------
149+
/// @name Creating a Configuration
150+
///--------------------------------------
151+
116152
/**
117153
Create a new SDK configuration object. This will create a temporarily modifiable configuration, and pass it to a block
118154
to be initialized.
119155
120156
Example usage:
121157
122158
```
123-
[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientconfiguration> configuration) {
159+
[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
124160
configuration.applicationId = ...;
125161
configuration.clientKey = ...;
126162
configuration.localDatastoreEnabled = ...;

0 commit comments

Comments
 (0)