diff --git a/source/includes/api-details/csharp/sync/manage-sync-sessions-check-upload-and-download-progress-description.rst b/source/includes/api-details/csharp/sync/manage-sync-sessions-check-upload-and-download-progress-description.rst index 7fac246cf2..cd0de13ac4 100644 --- a/source/includes/api-details/csharp/sync/manage-sync-sessions-check-upload-and-download-progress-description.rst +++ b/source/includes/api-details/csharp/sync/manage-sync-sessions-check-upload-and-download-progress-description.rst @@ -24,3 +24,7 @@ as a double between 0.0 and 1.0. Once you no longer wish to receive notifications, unregister the token with ``token.Dispose()``. + +In the following example, we subscribe to a progress observable on the +``session`` to listen for upload events. When this callback is triggered, it +prints the upload progress as a percentage. diff --git a/source/includes/api-details/javascript/crud/create-counter-property-type-description.rst b/source/includes/api-details/javascript/crud/create-counter-property-type-description.rst new file mode 100644 index 0000000000..87b89bcacb --- /dev/null +++ b/source/includes/api-details/javascript/crud/create-counter-property-type-description.rst @@ -0,0 +1,11 @@ +To initialize a :js-sdk:`Counter `, create +your object using the ``realm.create()`` method. Pass in your :ref:`object +schema ` and initial counter value, as well as initial +values for any other properties the object has. + +After initialization, you can use the following methods to modify the counter +value: + +- ``increment()`` and ``decrement()`` update the underlying value by a + specified number. +- ``set()`` reassigns the counter to a specified value. diff --git a/source/includes/api-details/javascript/crud/create-counter-property-type-not-supported.rst b/source/includes/api-details/javascript/crud/create-counter-property-type-not-supported.rst deleted file mode 100644 index 08187be898..0000000000 --- a/source/includes/api-details/javascript/crud/create-counter-property-type-not-supported.rst +++ /dev/null @@ -1 +0,0 @@ -JavaScript does not currently have a dedicated counter property type. diff --git a/source/includes/api-details/typescript/crud/create-counter-property-type-not-supported.rst b/source/includes/api-details/typescript/crud/create-counter-property-type-not-supported.rst deleted file mode 100644 index 2fddba5e74..0000000000 --- a/source/includes/api-details/typescript/crud/create-counter-property-type-not-supported.rst +++ /dev/null @@ -1 +0,0 @@ -TypeScript does not currently have a dedicated counter property type. diff --git a/source/includes/sdk-examples/crud/create-counter-property-type.rst b/source/includes/sdk-examples/crud/create-counter-property-type.rst index 341c05b2fc..052f38dc5c 100644 --- a/source/includes/sdk-examples/crud/create-counter-property-type.rst +++ b/source/includes/sdk-examples/crud/create-counter-property-type.rst @@ -36,9 +36,8 @@ - id: javascript content: | - .. literalinclude:: /examples/MissingPlaceholders/api.js + .. literalinclude:: /examples/generated/node/data-types.test.snippet.initialize-counter.js :language: javascript - :copyable: false - id: kotlin content: | @@ -63,6 +62,5 @@ - id: typescript content: | - .. literalinclude:: /examples/MissingPlaceholders/api.ts + .. literalinclude:: /examples/generated/node/data-types.test.snippet.initialize-counter.ts :language: typescript - :copyable: false diff --git a/source/includes/sdk-examples/sync/manage-sync-sessions-check-upload-download-progress.rst b/source/includes/sdk-examples/sync/manage-sync-sessions-check-upload-download-progress.rst index f69cc86741..8b0cac19cf 100644 --- a/source/includes/sdk-examples/sync/manage-sync-sessions-check-upload-download-progress.rst +++ b/source/includes/sdk-examples/sync/manage-sync-sessions-check-upload-download-progress.rst @@ -10,7 +10,7 @@ - id: csharp content: | - .. literalinclude:: /examples/MissingPlaceholders/example.cs + .. literalinclude:: /examples/generated/dotnet/ProgressNotifications.snippet.upload-download-progress-notification.cs :language: csharp - id: dart diff --git a/source/sdk/crud/create/create-property-types.txt b/source/sdk/crud/create/create-property-types.txt index 4229f7e3b4..69b202d01b 100644 --- a/source/sdk/crud/create/create-property-types.txt +++ b/source/sdk/crud/create/create-property-types.txt @@ -154,7 +154,7 @@ counter. .. tab:: :tabid: javascript - .. include:: /includes/api-details/javascript/crud/create-counter-property-type-not-supported.rst + .. include:: /includes/api-details/javascript/crud/create-counter-property-type-description.rst .. tab:: :tabid: kotlin @@ -174,7 +174,7 @@ counter. .. tab:: :tabid: typescript - .. include:: /includes/api-details/typescript/crud/create-counter-property-type-not-supported.rst + .. include:: /includes/api-details/javascript/crud/create-counter-property-type-description.rst .. include:: /includes/sdk-examples/crud/create-counter-property-type.rst