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

查看:57
本文介绍了检测 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.

有谁知道如何检测这个,或者甚至我如何模拟这个?我知道多点触控已经过时了,不知道 Apple 是如何检测被遮挡的脸的.

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.

推荐答案

目前无法检测 Cover to Mute 或其他手势.手势由系统自动处理;在 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天全站免登陆