• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.bluetooth.constant (蓝牙constant模块)(系统接口)
2
3<!--Kit: Connectivity Kit-->
4<!--Subsystem: Communication-->
5<!--Owner: @enjoy_sunshine-->
6<!--Designer: @chengguohong; @tangjia15-->
7<!--Tester: @wangfeng517-->
8<!--Adviser: @zhang_yixin13-->
9
10constant模块提供了蓝牙中常量的定义。
11
12> **说明:**
13>
14> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
15> 当前页面仅包含本模块的系统接口,其他公开接口参见[@ohos.bluetooth.constant (蓝牙constant模块)](js-apis-bluetooth-constant.md)。
16
17## 导入模块
18
19```js
20import { constant } from '@kit.ConnectivityKit';
21```
22
23## AccessAuthorization<sup>11+</sup>
24
25枚举,访问权限。
26
27**系统接口:** 此接口为系统接口。
28
29**系统能力**:SystemCapability.Communication.Bluetooth.Core
30
31| 名称                 | 值  | 说明     |
32| ------------------ | ---- | ------ |
33| UNKNOWN<sup>11+</sup> | 0    | 未知。<br/>此接口为系统接口。  |
34| ALLOWED<sup>11+</sup> | 1    | 允许。<br/>此接口为系统接口。  |
35| REJECTED<sup>11+</sup> | 2    | 拒绝。<br/>此接口为系统接口。 |