finish

abstract fun finish()

关闭 android.app.Activity, 这对于测试 Compose UI 或者原生UI很有用,可以调用此方法后再调用 start 方法即可显示更新后的 Compose UI 或者原生UI.