Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing issue on get code #103

Closed
rajutukadiya opened this issue Apr 20, 2023 · 1 comment
Closed

Facing issue on get code #103

rajutukadiya opened this issue Apr 20, 2023 · 1 comment

Comments

@rajutukadiya
Copy link

fun handleResult(result: QRResult) {
Toast.makeText(activity,result.content.rawValue,Toast.LENGTH_SHORT).show()
}

content.rawValue, not found

dep: implementation("io.github.g00fy2.quickie:quickie-unbundled:1.6.0")

@G00fY2
Copy link
Owner

G00fY2 commented Apr 20, 2023

QRResult is a Kotlin sealed class and can therefore be an instance of different subtypes.

As you can see in the sample app, you have to first check if result is of type QRSuccess in order to access the QRContent and it's rawValue.

@G00fY2 G00fY2 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants