realm-kotlin icon indicating copy to clipboard operation
realm-kotlin copied to clipboard

AppConfiguration - SyncTimeoutOptions

Open sync-by-unito[bot] opened this issue 3 years ago • 0 comments

Add support for configuring various sync timeouts.

The Swift API is here: https://www.mongodb.com/docs/realm-sdks/objc/latest/Classes/RLMSyncTimeoutOptions.html, but the Kotlin API might look slightly different as we haven't really supported nested configuration objects until now.

One suggestion might be to have nested builders, which create an DSL, something like:

val appConfig = AppConfiguration.Builder("appId")
  .syncTimeOuts { // this: SyncTimeoutsBuilder
     pingKeepalivePeriod = 10.seconds 
  }
  .build()

sync-by-unito[bot] avatar Aug 15 '22 12:08 sync-by-unito[bot]