Engine

class Engine(val viewport: Viewport, val backgroundColor: Color, userPlugins: PluginFactory)

Constructors

Link copied to clipboard
constructor(viewport: Viewport, backgroundColor: Color, vararg userPlugins: PluginFactory)

Properties

Link copied to clipboard
Link copied to clipboard

是否加载

Link copied to clipboard

是否运行

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun initialize(): Boolean

初始化

Link copied to clipboard
fun launchCoroutine(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> Unit): Job
Link copied to clipboard
inline fun <T : Plugin> plugin(): T
Link copied to clipboard
inline fun <T : Plugin> pluginOrNull(): T?
Link copied to clipboard
Link copied to clipboard
fun release()

销毁

Link copied to clipboard
fun ViewportContent(modifier: Modifier = Modifier.fillMaxSize(), padding: PaddingValues = PaddingValues.Zero)