Register
Functions
Link copied to clipboard
注册平台资源
Link copied to clipboard
fun Register.module(module: String, content: RegisterModuleBuilder.() -> Unit): RegisterModuleBuilder
构建一个模块
Link copied to clipboard
注册页面
Link copied to clipboard
fun <I, O> Register.platformRoute(address: String, contract: ActivityResultContract<I, O>, block: (ActivityRouter<I, O>) -> Unit)
注册路由到activity的部分
Link copied to clipboard
fun Register.startActivity(address: String, activityKClass: KClass<out Activity>, intentBody: Intent.(Bundle) -> Unit = {}, block: Bundle.(ActivityResult) -> Unit = { it.data?.extras?.let { putAll(it) } })
打开activity
Link copied to clipboard
fun Register.windowMenu(windowId: String = Constants.DEFAULT_WINDOW, menu: @Composable FrameWindowScope.() -> Unit)
注册windowId对应的窗口菜单