点击屏幕的SmartWatch在code [英] Tap on SmartWatch screen in code
问题描述
当我触摸屏的SmartWatch从暗淡的状态中醒来。我在code如何做同样的事情?
When I touch the SmartWatch screen it wakes up from dimmed state. How can I in code do the same thing?
推荐答案
请参阅随附SmartExtension SDK中的SmartExtension API规范的文件的第6.2节:
Refer to section 6.2 of the "SmartExtension API Specification" document that comes with the SmartExtension SDK:
实施控制API扩展还必须控制附件的状态的可能性
显示。显示器可通过CONTROL_SET_SCREEN_STATE_INTENT来控制。搜索结果
作为意图的一部分,您还需要指定要设置什么状态。下列选项可供选择:结果
* SCREEN_STATE_OFF结果
* SCREEN_STATE_DIM结果
* SCREEN_STATE_ON结果
* SCREEN_STATE_AUTO结果
Extensions implementing the Control API also have the possibility to control the state of the accessory display. The display can be controlled via the CONTROL_SET_SCREEN_STATE_INTENT.
As part of the Intent, you also need to specify what state you want to set. The following options are available:
* SCREEN_STATE_OFF
* SCREEN_STATE_DIM
* SCREEN_STATE_ON
* SCREEN_STATE_AUTO
这篇关于点击屏幕的SmartWatch在code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!