harmony 鸿蒙@ohos.bluetooth.constant (Bluetooth constant Module) (System API)

  • 2025-06-12
  • 浏览 (4)

@ohos.bluetooth.constant (Bluetooth constant Module) (System API)

The constant module provides definitions of the constants used in Bluetooth.

NOTE

The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version. This topic describes only the system APIs provided by the module. For details about its public APIs, see @ohos.bluetooth.constant (Bluetooth constant Module).

Modules to Import

import { constant } from '@kit.ConnectivityKit';

AccessAuthorization11+

Enumerates the access permissions.

System API: This is a system API.

System capability: SystemCapability.Communication.Bluetooth.Core

Name Value Description
UNKNOWN11+ 0 Unknown.
This is a system API.
ALLOWED11+ 1 Access allowed.
This is a system API.
REJECTED11+ 2 Access rejected.
This is a system API.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Connectivity Kit (Short-Range Communication Service)

harmony 鸿蒙Bluetooth

harmony 鸿蒙Wifi

harmony 鸿蒙Bluetooth Error Codes

harmony 鸿蒙NFC Error Codes

harmony 鸿蒙SecureElement Error Codes

harmony 鸿蒙Wi-Fi Error Codes

harmony 鸿蒙@ohos.bluetooth.a2dp (Bluetooth A2DP Module) (System API)

harmony 鸿蒙@ohos.bluetooth.a2dp (Bluetooth A2DP Module)

harmony 鸿蒙@ohos.bluetooth.access (Bluetooth Access Module) (System API)

0  赞