Skip to content

Commit

Permalink
Apply suggestions from review
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Rollins <[email protected]>
  • Loading branch information
dacharyc and krollins-mdb authored Jun 25, 2024
1 parent 53c41c1 commit f88df2b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ To asynchronously wait for your changes to finish uploading, get the Sync
session from the :dotnet-sdk:`Realms.Sync.SyncSession
<reference/Realms.Realm.html#Realms_Realm_SyncSession>`
property, and then call the :dotnet-sdk:`session.WaitForUploadAsync()
<reference/Realms.Sync.Session.html#Realms_Sync_Session_WaitForUploadAsync>`
<reference/Realms.Sync.Session.html#Realms_Sync_Session_WaitForDownloadAsync_System_Nullable_System_Threading_CancellationToken__>`
method.

To wait for changes to finish downloading, call the
:dotnet-sdk:`session.WaitForDownloadAsync()
<reference/Realms.Sync.Session.html#Realms_Sync_Session_WaitForDownloadAsync>`
<reference/Realms.Sync.Session.html#Realms_Sync_Session_WaitForUploadAsync_System_Nullable_System_Threading_CancellationToken__>`
method.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To check the current network connection, call :java-sdk:`getConnectionState()
<io/realm/mongodb/sync/SyncSession.html#getConnectionState-->` on your
<io/realm/mongodb/sync/SyncSession.html#getConnectionState()>` on your
:java-sdk:`SyncSession <io/realm/mongodb/sync/SyncSession.html>`.

You can also subscribe to connection changes on your ``SyncSession``
with :java-sdk:`addConnectionChangeListener()
<io/realm/mongodb/sync/SyncSession.html#addConnectionChangeListener-io.realm.mongodb.sync.ConnectionListener->`
<io/realm/mongodb/sync/SyncSession.html#addConnectionChangeListener(io.realm.mongodb.sync.ConnectionListener)>`
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
To pause a currently active sync session, call
:java-sdk:`stop() <io/realm/mongodb/sync/SyncSession.html#stop-->`
:java-sdk:`stop() <io/realm/mongodb/sync/SyncSession.html#stop()>`
on your :java-sdk:`SyncSession <io/realm/mongodb/sync/SyncSession.html>`:

.. literalinclude:: /examples/generated/java/sync/SyncDataTest.snippet.pause-sync-session.java
:language: java
:copyable: false

To resume a currently paused sync session, call
:java-sdk:`start() <io/realm/mongodb/sync/SyncSession.html#start-->`
:java-sdk:`start() <io/realm/mongodb/sync/SyncSession.html#start()>`
on your :java-sdk:`SyncSession <io/realm/mongodb/sync/SyncSession.html>`:
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
``addProgressNotificationForDirection`` deprecated in favor of ``addSyncProgressNotificationForDirection``

You can add a progress notification using the RLMSyncSession instance's
:objc-sdk:`[--addSyncProgressNotificationForDirection:mode:block:]
:objc-sdk:`addSyncProgressNotificationForDirection:mode:block:
<Classes/RLMSyncSession.html#/c:objc(cs)RLMSyncSession(im)addSyncProgressNotificationForDirection:mode:block:>`
method.

Expand Down
4 changes: 2 additions & 2 deletions source/sdk/sync/manage-sync-sessions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ Sync session, or change Sync subscriptions.

.. _sdks-check-upload-and-download-progress:

Check Upload & Download Progress
--------------------------------
Check Upload and Download Progress
----------------------------------

You can check the upload and download progress for a Sync session. You might
want to check upload or download progress when you want to provide a progress
Expand Down

0 comments on commit f88df2b

Please sign in to comment.