~eliasnaur/gio

2 2

Camera access for mobile

Details
Message ID
<CAKoe6qELwjVtTBKF1t3r7Hrk+ppQ2u9MGYZ9ugJ83ZWK6_Zpwg@mail.gmail.com>
DKIM signature
pass
Download raw message
Hello,
I'm Justin Do from Cryptopower. Now we need to access to camera from
mobile for read QR Code, I see gioui provide camera permission package
(https://pkg.go.dev/gioui.org@v0.6.0/app/permission/camera), so how do
we use it to read QR Code?

Thank you!
Details
Message ID
<CALGqR9JEbPt=L7j525=kePxeNi7ov94jwAdnV3A9fiLWgY6F8A@mail.gmail.com>
In-Reply-To
<CAKoe6qELwjVtTBKF1t3r7Hrk+ppQ2u9MGYZ9ugJ83ZWK6_Zpwg@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
I'm interested in general Camera access too actually.
As well as potentially Microphone.

-- James Mills / prologic

Join Yarn.social today! The only decentralised social media that
respects your privacy and freedoms!

E:    prologic@shortcircuit.net.au
W:    prologic.shortcircuit.net.au
Blog: Read my Blog
Yarn: @prologic@twtxt.net

On Sat, May 11, 2024 at 6:57 PM do justin <justindo.works@gmail.com> wrote:
>
> Hello,
> I'm Justin Do from Cryptopower. Now we need to access to camera from
> mobile for read QR Code, I see gioui provide camera permission package
> (https://pkg.go.dev/gioui.org@v0.6.0/app/permission/camera), so how do
> we use it to read QR Code?
>
> Thank you!
Details
Message ID
<CAFcc3FSkVwK7+uenQR9HSnrmSUfHSuTick+akmEv+uXbPryy0A@mail.gmail.com>
In-Reply-To
<CAKoe6qELwjVtTBKF1t3r7Hrk+ppQ2u9MGYZ9ugJ83ZWK6_Zpwg@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
On Sat, May 11, 2024 at 4:57 AM do justin <justindo.works@gmail.com> wrote:
>
> Hello,
> I'm Justin Do from Cryptopower. Now we need to access to camera from
> mobile for read QR Code, I see gioui provide camera permission package
> (https://pkg.go.dev/gioui.org@v0.6.0/app/permission/camera), so how do
> we use it to read QR Code?

We do not currently provide a pre-baked package for reading the
camera. That permission package is really just a way for gogio to know
whether your application packaging needs to request camera
permissions. To actually read the camera, you'll need to write some
integration code with the platform. I believe some of this has already
been done by other community members, but I'm failing to locate an
example in my attempted search right now. There's no fundamental
obstacle, just some platform code to write.

Cheers,
Chris
Reply to thread Export thread (mbox)