语言

CurrentBluetoothStatusCodes 枚举

定义

public enum CurrentBluetoothStatusCodes
type CurrentBluetoothStatusCodes = 
继承
CurrentBluetoothStatusCodes

字段

名称 值 说明
Success 0

指示 API 调用成功。

Android 参考。android.bluetooth.BluetoothStatusCodes.SUCCESS

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorBluetoothNotEnabled 1

指示未启用蓝牙的错误代码。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorBluetoothNotAllowed 2

错误代码,指示 API 调用不是由系统发起的,也不是活动用户。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ALLOWED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorDeviceNotBonded 3

指示指定的蓝牙设备未绑定的错误代码。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_DEVICE_NOT_BONDED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorMissingBluetoothConnectPermission 6

指示调用方没有Manifest.permission.BLUETOOTH_CONNECT权限的错误代码。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorProfileServiceNotBound 9

指示配置文件服务未绑定的错误代码。 可以通过调用 BluetoothAdapter.getProfileProxy(Context,BluetoothProfile.ServiceListener,int)来绑定配置文件服务。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_PROFILE_SERVICE_NOT_BOUND

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

FeatureSupported 10

指示支持该功能。

Android 参考。android.bluetooth.BluetoothStatusCodes.FEATURE_SUPPORTED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

FeatureNotSupported 11

指示不支持该功能。

Android 参考。android.bluetooth.BluetoothStatusCodes.FEATURE_NOT_SUPPORTED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

FeatureNotConfigured 30

指示尚未配置功能状态。

Android 参考。android.bluetooth.BluetoothStatusCodes.FEATURE_NOT_CONFIGURED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorGattWriteNotAllowed 200

远程设备上不允许使用 GATT writeCharacteristic 请求。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_GATT_WRITE_NOT_ALLOWED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorGattWriteRequestBusy 201

GATT writeCharacteristic 请求将颁发给繁忙的远程设备。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_GATT_WRITE_REQUEST_BUSY

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorSdpDiscoveryFailed 1400

未在 SDP 发现中找到配置文件服务。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_SDP_DISCOVERY_FAILED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorStreamConnectionFailed 1401

配置文件流连接失败。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_STREAM_CONNECTION_FAILED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorRoleSwitchFailed 1402

由于角色管理相关问题,配置文件连接失败。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_ROLE_SWITCH_FAILED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorAvdtpDiscoveryFailed 1403

AVDTP 发现无法在对等设备上找到可用的 SEP。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_AVDTP_DISCOVERY_FAILED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorInsufficientResources 1404

配置文件连接因资源不足、本地或远程不足而失败。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_INSUFFICIENT_RESOURCES

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorRfcommConnectionFailed 1405

Rfcomm 连接失败。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_RFCOMM_CONNECTION_FAILED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

ErrorUnknown 2147483647

指示发生了未知错误。

Android 参考。android.bluetooth.BluetoothStatusCodes.ERROR_UNKNOWN

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于