【问题标题】:What's the relationship between Chrome Bluetooth API's `powered` and `available`?Chrome 蓝牙 API 的 `powered` 和 `available` 有什么关系?
【发布时间】:2016-03-15 13:09:47
【问题描述】:

chrome.bluetooth.getAdapterState() 返回一个包含字段poweredavailable 的对象。两者是什么关系?

例如蓝牙适配器可以供电但不可用吗?可用但未通电怎么办?

我假设蓝牙适配器必须通电并且可用,这个假设是否正确?

【问题讨论】:

    标签: google-chrome google-chrome-extension bluetooth google-chrome-app


    【解决方案1】:

    如果设备不支持蓝牙或蓝牙守护程序停止,蓝牙适配器可能不可用。

    当蓝牙适配器为available时,用户仍然可以打开和关闭它,因此powered字段可以是truefalse

    是的,蓝牙适配器必须通电并且可用。

    【讨论】:

    • 不错的答案! (嗨弗朗索瓦 :))
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-25
    • 1970-01-01
    • 2012-12-07
    • 2016-07-29
    • 2017-02-23
    • 1970-01-01
    相关资源
    最近更新 更多