forked from mongodb/docs-realm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(DOCSP-33996): Swift: Update progress notification documentation (mon…
…godb#3244) ## Pull Request Info Jira ticket: https://jira.mongodb.org/browse/DOCSP-33996 - [Manage Sync Sessions](https://preview-mongodbdacharyc.gatsbyjs.io/realm/DOCSP-33996/sdk/swift/sync/sync-session/#check-upload---download-progress-for-a-sync-session): Add a text description with some details. Update code examples. ### Reminder Checklist Before merging your PR, make sure to check a few things. - [x] Did you tag pages appropriately? - genre - meta.keywords - meta.description - [x] Describe your PR's changes in the Release Notes section - [x] Create a Jira ticket for related docs-app-services work, if any ### Release Notes - **Swift SDK** - Sync Data/Manage Sync Sessions: Update the documentation for Upload and Download Progress Notifications, which have been updated for compatibility with Flexible Sync. ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md) --------- Co-authored-by: cbullinger <115956901+cbullinger@users.noreply.github.com>
- Loading branch information
1 parent
475864c
commit ec69835
Showing
10 changed files
with
137 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
source/examples/generated/code/start/Sync.snippet.check-progress-estimate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let syncSession = realm.syncSession! | ||
let token = syncSession.addProgressNotification( | ||
for: .upload, mode: .forCurrentlyOutstandingWork) { (progress) in | ||
|
||
let progressEstimate = progress.progressEstimate | ||
let transferPercent = progressEstimate * 100 | ||
|
||
print("Uploaded (\(transferPercent)%)") | ||
} |
6 changes: 3 additions & 3 deletions
6
source/examples/generated/code/start/Sync.snippet.check-progress.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.