Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

QR code help#795

Unanswered
laurant94 asked this question inQ&A
Feb 15, 2021· 1 comments· 3 replies
Discussion options

Hello.
I am new tonativeScript-vue and would like to know if anyone know how i can implement a QR code reader.
Thank you

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

Just use one of the existing plugins, likehttps://market.nativescript.org/plugins/@nativescript-community/ui-barcodeview/ for example.

You must be logged in to vote
3 replies
@laurant94
Comment options

Thank you for your reply.
I have already used the package but I don't know how to get the scanner code.
Instead of a code in the @scanResult callback, I get the event.

the event contains an _observer and contains in resultCode which is always empty.

@rigor789
Comment options

@laurant94 That's probably better to ask in thehttps://github.com/nativescript-community/ui-barcodeview repository along with the code you have used.

Their example does this:

onScanResult(evt){console.log(`onScanResult:${evt.text} (${evt.format})`);},

https://github.com/nativescript-community/ui-barcodeview/blob/8e150607c61c902757425469216777ac4d458125/demo-vue/app/components/App.vue#L42-L44

@laurant94
Comment options

Thank you rogor789.
I received the text

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@laurant94@rigor789

[8]ページ先頭

©2009-2025 Movatter.jp