Add in-app qr code scanner

This commit is contained in:
世界
2024-03-16 16:38:42 +08:00
parent df51284af0
commit 29e02d2696
15 changed files with 471 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
package io.nekohasekai.sfa.vendor
import android.app.Activity
import androidx.camera.core.ImageAnalysis
import java.lang.Exception
object Vendor : VendorInterface {
@@ -11,4 +13,10 @@ object Vendor : VendorInterface {
override fun checkUpdate(activity: Activity, byUser: Boolean) {
}
override fun createQRCodeAnalyzer(
onSuccess: (String) -> Unit,
onFailure: (Exception) -> Unit
): ImageAnalysis.Analyzer? {
return null
}
}