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.
- Loading branch information
1 parent
ae472be
commit 64319c4
Showing
4 changed files
with
12 additions
and
13 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
5 changes: 3 additions & 2 deletions
5
source/examples/generated/kotlin/AppClientTest.snippet.change-base-url.kt
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
// Specify a custom baseUrl to connect to. | ||
// In this case, an Edge Server instance running on the device. | ||
// In this case, an Edge Server instance running on the device: | ||
val config = AppConfiguration.Builder(EDGE_SERVER_APP_ID) | ||
.baseUrl("http://localhost:80") | ||
.build() | ||
val app = App.create(config) | ||
|
||
// ... log in a user and use the app ... | ||
|
||
// Later, change the baseUrl to the default: | ||
// Later, change the baseUrl. | ||
// In this case, pass `null` to reset to default: | ||
// https://services.cloud.mongodb.com | ||
app.updateBaseUrl(null) |
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