Builder

class Builder(appId: String)

Builder used to construct instances of an AppConfiguration in a fluent manner.

Parameters

appId

the application id of the App Services Application.

Constructors

Builder
Link copied to clipboard
fun Builder(appId: String)
the application id of the App Services Application.

Functions

baseUrl
Link copied to clipboard
fun baseUrl(baseUrl: String): AppConfiguration.Builder
Sets the base url for the App Services Application.
build
Link copied to clipboard
fun build(): AppConfiguration
Creates the AppConfiguration from the properties of the builder.
dispatcher
Link copied to clipboard
fun dispatcher(dispatcher: CoroutineDispatcher): AppConfiguration.Builder
The dispatcher used to execute internal tasks; most notably remote HTTP requests.
log
Link copied to clipboard
fun log(level: LogLevel = LogLevel.WARN, customLoggers: List<RealmLogger> = emptyList()): AppConfiguration.Builder
Configures how Realm will report log events for this App.
syncRootDirectory
Link copied to clipboard
fun syncRootDirectory(rootDir: String): AppConfiguration.Builder
Configures the root folder that marks the location of a mongodb-realm folder.