I m looking to combine 4 StateFlow values and make 1 StateFlow from these. I know already of the combine function like this:
val buttonEnabled = cameraPermission.combine(micPermission) {
//some logic
}
如何利用4次流动来做到这一点? 当我尝试下文时,我发现错误时,有太多的论点,但综合职能,即,你确实能够增加多达5个流动?
val buttonEnabled = cameraPermission.combine(micPermission, locationPermission, contactsPermission) {
}