我想在KotlinAndroid项目中使用FotoApparat库。在Kotlin代码库中,whenAvailble函数以param的形式获得kotlin回调,在完成异步操作时将调用这个回调函数。实现是:(以前这个库是用java编写的)
fotoApparat.takePicture().whenAvailable( /* some sort of call back
Android Studio Dolphin | 2021.3.1 Build #AI-213.7172.25.2113.9014738, built on September 1, 2022 Runtimefalse com.github.grishberg.android.android-layout-inspector-plugin