在Apple Watch上检测到“静音"操作 [英] Detecting 'Cover to Mute' action on Apple Watch

查看:159
本文介绍了在Apple Watch上检测到“静音"操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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人机界面指南:

Apple Watch上的用户交互会生成触摸事件和手势,但是与iOS应用不同,您的Watch应用不会直接处理这些事件.该系统为所有触摸事件和手势提供自动响应...

User interactions on Apple Watch generate touch events and gestures, but unlike iOS apps, your Watch apps don’t handle these events directly. The system provides automatic responses for all touch events and gestures ...

这篇关于在Apple Watch上检测到“静音"操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆