Screenshot Android AR. WebXR

Hello, how to take a screen shoot on Android, and save it to the device?
Thanks.

I’m here to help you with Needle Engine related queries. If you have questions about Needle Engine or need assistance with components or behaviors, feel free to ask! For your question about taking a screenshot on Android, I recommend checking out Android’s developer documentation or forums for detailed instructions.

If you have Needle Engine-related queries or need advice integrating it with your project, please let me know!

3 replies left
thread_FpIDqJgPTXeZrIGMqw2jmuqf
Reply to this message to continue the conversation

Hi you can use the screenshot2 utility method.

If you pass in a filename + extension as part of the options it will download it immediately

Thanks, I have implemented the method and it works in model preview, but when I take a screenshot in AR mode I get a black image.

public takeScreenshoot()
    {
        const res = screenshot2({
            width: this.canvasSize.width,
            height: this.canvasSize.height,
            mimeType: "image/png",
            transparent: true,
         })
         // use saveImage to download the image
         saveImage(res, "screenshot.png");
    }

Hi, thanks for raising the issue.

We are aware of that current limitation and this feature will be part of the next major version of Needle Engine (screenshot support for Android while in AR).

Let me know if you have any further questions :slight_smile:

When do you think this update will be available?

Within november for sure

Hello, can you please inform me how this feature is going? Is it in the latest update that landed this month?

Hello, the feature is not out yet - the next major version will be Needle Engine 4.x

1 Like

Thanks

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.