SyncOptions
SyncOptions are used to pass variable information to SyncDocument, SyncMap, SyncList and SyncStream opening functions.
Typical usage pattern: new SyncOptions().withUniqueName("myName")
Types
Functions
Link copied to clipboard
Public factory method to create a new instance of SyncOptions.
Link copied to clipboard
Creates a new object with specified unique name, fails if the given name is already in use.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getSynchronizationStrategy(): SyncOptions.SynchronizationStrategy
Content copied to clipboard
Link copied to clipboard
abstract fun openWithSidOrUniqueName(sidOrUniqueName: String): SyncOptions
Content copied to clipboard
Opens an existing object with specified SID or unique name.
Link copied to clipboard
abstract fun withStrategy(strategy: SyncOptions.SynchronizationStrategy): SyncOptions
Content copied to clipboard
Set SynchronizationStrategy the Sync object.
Link copied to clipboard
Set time to live for the Sync object in seconds.
Link copied to clipboard
Creates a new object or opens an existing one with provided unique name.
Creates a new object or opens an existing one with provided unique name, also given a specific opening mode.