简体   繁体   English

如何强制用户通过相机(意图相机)拍摄图像或如何禁用意图相机后退按钮?

[英]How to force user to take image via camera ( intent camera) or how to disable intent camera back button?

I want to force user to click image once camera opened, he should not go back without clicking image via back button.我想强迫用户在相机打开后单击图像,他不应该在不通过后退按钮单击图像的情况下返回 go。

Please suggest me how to implement force click or disable intent camera back button in android.请建议我如何在 android 中实现强制单击或禁用意图相机后退按钮。

That is not possible, sorry.这是不可能的,对不起。 If you need that degree of control over the camera, do not use an Intent to launch some third-party camera app.如果您需要对相机进行那种程度的控制,请不要使用Intent来启动某些第三方相机应用程序。 You will need to write your own camera logic, using the camera APIs or a library wrapper around them (CameraX, Fotoapparat, CameraKit/Android, etc.).您将需要编写自己的相机逻辑,使用相机 API 或围绕它们的库包装器(CameraX、Fotoapparat、CameraKit/Android 等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM