语言

BluetoothHidDeviceAppSdpSettings 构造函数

定义

为蓝牙 SDP 记录创建 BluetoothHidDeviceAppSdpSettings 对象。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;B[B)V", "", ApiSince=28)]
public BluetoothHidDeviceAppSdpSettings(string? name, string? description, string? provider, sbyte subclass, byte[]? descriptors);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;B[B)V", "", ApiSince=28)>]
new Android.Bluetooth.BluetoothHidDeviceAppSdpSettings : string * string * string * sbyte * byte[] -> Android.Bluetooth.BluetoothHidDeviceAppSdpSettings

参数

name
String

此蓝牙 HID 设备的名称。 最大长度为 50 字节。

description
String

此蓝牙 HID 设备的说明。 最大长度为 50 字节。

provider
String

此蓝牙 HID 设备的提供商。 最大长度为 50 字节。

subclass
SByte

此蓝牙 HID 设备的子类。 请参阅 www.usb.org/developers/hidpage/HID1_11.pdf 第 4.2 节

descriptors
Byte[]

此蓝牙 HID 设备的描述符。 请参阅 www.usb.org/developers/hidpage/HID1_11.pdf 第 6 章最大长度为 2048 字节。

特性

注解

为蓝牙 SDP 记录创建 BluetoothHidDeviceAppSdpSettings 对象。

Java文档android.bluetooth.BluetoothHidDeviceAppSdpSettings.BluetoothHidDeviceAppSdpSettings(java.lang.String, java.lang.String, java.lang.String, byte, byte[])。

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

适用于