gpt4 book ai didi

android - 我可以检测 Android 设备上是否存在 'LED notification' 吗?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:25:55 26 4
gpt4 key购买 nike

背景:我有一个带通知的应用程序,我想支持 LED 通知(并且运行良好)。在我的偏好中,我允许用户自定义 LED 通知。

问题:如果设备不支持 LED 自定义选项,我不想显示它们,因为它可能会使用户感到困惑(如果您拥有的只是廉价的 Android,您不知道 LED 通知是什么).是否有可用于检测设备是否支持它的 API?

如果有“旧”和"new"方式,我可能更喜欢旧方式,因为我支持的最低 API 级别是 4。

谢谢

LED 通知:如果启用,当您的显示屏关闭时,您手机的 LED 会闪烁以接收通知。

最佳答案

Is there an API that I can use to detect if the device supports it?

唉,不,没有这方面的 API。

关于android - 我可以检测 Android 设备上是否存在 'LED notification' 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5997692/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com