Comments (1)
You can simply check the result and content type to access the data:
E.g.
fun handleResult(result: QRResult) {
if (result is QRSuccess) {
when (val content = result.content) {
is QRContent.CalendarEvent -> TODO()
is QRContent.ContactInfo -> TODO()
is QRContent.Email -> TODO()
is QRContent.GeoPoint -> TODO()
is QRContent.Phone -> TODO()
is QRContent.Plain -> TODO()
is QRContent.Sms -> TODO()
is QRContent.Url -> TODO()
is QRContent.Wifi -> {
val ssid = content.ssid
}
}
}
}
Feel free to reopen this issue if there is anything missing.
from quickie.
Related Issues (20)
- Facing issue on get code HOT 1
- toString() - Am I missing something HOT 1
- Barcode Scanning is not working on Devices Managed by MDM-Android HOT 1
- Unable to read encrypted qr codes HOT 1
- Google code scanner buggy HOT 1
- [Feature Request] Tap to focus feature
- [Feature Request] Configure to Keep the Screen On HOT 1
- FOSS version HOT 7
- Crash on Android 9.1 smart watch HOT 7
- Minimum SDK version - 31 HOT 2
- Dependency Dashboard
- [Feature Request] Scan from file HOT 5
- Adaptation for easy implementation in Jetpack Compose HOT 4
- Request removing `<uses-feature android:name="android.hardware.camera"/>` HOT 2
- internal QROverlayView? HOT 4
- Crash on certain devices HOT 2
- Failed to open the camera in mode: "Do Not Disturb" HOT 1
- Occasional crash on Pixel 5 Android 13 HOT 5
- java.util.concurrent.ExecutionException when initial camera HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickie.