You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/stack.js
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -260,25 +260,26 @@ export default class Stack {
260
260
261
261
/**
262
262
* @method sync
263
-
* @descriptionSynchronization API is used to synchronize content from API server in order to keep local copy of content time to time.API allows incremental(changes in Content from timepoint) updates of content time to time instead of getting all content at same time.
264
-
* @param {object} params - params is an object with different parameters.
263
+
* @descriptionThe Sync API takes care of syncing your Contentstack data with your app and ensures that the data is always up-to-date by providing delta updates. Contentstack’s iOS SDK supports Sync API, which you can use to build powerful apps. Read through to understand how to use the Sync API with Contentstack JavaScript SDK.
264
+
* @param {object} params - params is an object which Supports locale, start_date, content_type_id queries.
265
265
* @example
266
-
* Stack.sync({'init': 'true'})
266
+
* Stack.sync({'init': true}) // For initializing sync
267
267
* @example
268
-
* Stack.sync({'init': 'true', 'locale': 'en-us'})
268
+
* Stack.sync({'init': true, 'locale': 'en-us'}) //For initializing sync with entries of a specific locale
0 commit comments