28
28
@class FIRTransaction;
29
29
@class FIRTransactionOptions;
30
30
@class FIRWriteBatch;
31
+ @class FIRPersistentCacheIndexManager;
31
32
32
33
NS_ASSUME_NONNULL_BEGIN
33
34
@@ -103,7 +104,16 @@ NS_SWIFT_NAME(Firestore)
103
104
#pragma mark - Configure FieldIndexes
104
105
105
106
/* *
106
- * This method is in preview. API signature and functionality are subject to change.
107
+ * A PersistentCacheIndexManager which you can config persistent cache indexes used for
108
+ * local query execution.
109
+ */
110
+ @property(nonatomic, readonly, nullable)
111
+ FIRPersistentCacheIndexManager *persistentCacheIndexManager;
112
+
113
+ /* *
114
+ * NOTE: This preview method will be deprecated in a future major release. Consider using
115
+ * `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
116
+ * cache indexes for queries running locally.
107
117
*
108
118
* Configures indexing for local query execution. Any previous index configuration is overridden.
109
119
*
@@ -121,10 +131,15 @@ NS_SWIFT_NAME(Firestore)
121
131
*/
122
132
- (void )setIndexConfigurationFromJSON:(NSString *)json
123
133
completion:(nullable void (^)(NSError *_Nullable error))completion
124
- NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
134
+ NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
135
+ " Instead of creating cache indexes manually, consider using "
136
+ " `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
137
+ " create cache indexes for queries running locally." );
125
138
126
139
/* *
127
- * This method is in preview. API signature and functionality are subject to change.
140
+ * NOTE: This preview method will be deprecated in a future major release. Consider using
141
+ * `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
142
+ * cache indexes for queries running locally.
128
143
*
129
144
* Configures indexing for local query execution. Any previous index configuration is overridden.
130
145
*
@@ -145,7 +160,10 @@ NS_SWIFT_NAME(Firestore)
145
160
*/
146
161
- (void )setIndexConfigurationFromStream:(NSInputStream *)stream
147
162
completion:(nullable void (^)(NSError *_Nullable error))completion
148
- NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
163
+ NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
164
+ " Instead of creating cache indexes manually, consider using "
165
+ " `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
166
+ " create cache indexes for queries running locally." );
149
167
150
168
#pragma mark - Collections and Documents
151
169
0 commit comments