问题描述
Apple Watch上有一项功能,您可以用手掌遮盖屏幕以使其静音.例如,如果您在会议中接到电话,则可以遮盖手表屏幕以使铃声静音.
There's a feature on Apple Watch where you can cover the screen with your palm to mute it. For example, if you get a call in a meeting, you can cover your watch screen to mute the ring.
我想在应用程序中使用此功能,但是找不到可以告诉我如何检测此操作的文档.
I would like to use this feature in an app, but can't find documentation that tells me how to detect this action.
有人知道如何检测到这个,或者甚至我怎么能模拟出来?我知道多点触摸已经用完了,也不知道苹果如何检测到被遮盖的脸.
Does anyone know of how to detect this, or perhaps even how I could simulate this? I know multi-touch is out, and don't know how Apple is detecting the face being covered.
推荐答案
当前无法检测到静音或其他手势.手势由系统自动处理;开发人员无法在watchOS 2中访问原始触摸事件或手势.
It's currently not possible to detect Cover to Mute or other gestures. Gestures are automatically handled by the system; there is no developer access to raw touch events or gestures in watchOS 2.
这篇关于在Apple Watch上检测到“静音"操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!