简体   繁体   English

Android Wear检测手表是否启用了环境屏幕模式

[英]Android Wear detect if watch has Ambient Screen Mode enabled

Certain Android watches have the option to turn Ambient Screen Mode on/off , meaning whether if after brief inactivity the watch will go into ambient mode instead of the screen turning totally off. 某些Android手表可以选择打开/关闭环境屏幕模式 ,这意味着在短暂的不活动之后,手表是否将进入环境模式而不是完全关闭屏幕。

Is there any way on the API to detect what is the state of this option on the watch? API上是否有任何方法可以检测手表上此选项的状态? And just to make it clear, I am not asking on detecting whether if the watch is on ambient mode at any given moment, but to whether if this option is enabled on the watch. 只是为了清楚起见,我不是要问是否在任何给定时刻检测手表是否处于环境模式,而是要问是否在手表上启用了此选项。 Thanks! 谢谢!

There is currently no API to give you that information. 当前没有API可以为您提供该信息。 What is the usecase you have in mind? 您想到的用例是什么?

配置保存在Settings.Secure.DOZE_ENABLED

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

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