Builder

class Builder(appId: String)

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

Parameters

appId

the application id of the MongoDB Realm Application.

Constructors

Builder
Link copied to clipboard
fun Builder(appId: String)

Functions

baseUrl
Link copied to clipboard
fun baseUrl(baseUrl: String): AppConfiguration.Builder

Sets the base url for the MongoDB Realm Application. The default value is DEFAULT_BASE_URL.

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

Configure how Realm will report log events for this App.