ApplicationDslBuilder
interface ApplicationDslBuilder<Config : ApplicationConfiguration, Builder : ApplicationBuilder<A>, A : Application>(source)
在 buildSimbotApplication 中提供允许通过DSL风格或链式调用风格来构建一个目标 Application.
e.g.
val app = buildSimbotApplication(Foo) {
config {
// ...
}
build {
// ...
}
}
app.join() // suspend join
Content copied to clipboard
Types
Link copied to clipboard
用于 build 兼容 Kotlin 和 Java.
Functions
Link copied to clipboard
abstract fun config(config: ApplicationDslBuilder.ConfigFunction<Config>): ApplicationDslBuilder<Config, Builder, A>
提供配置函数。
Link copied to clipboard
根据配置的函数构建目标 Application.