语言

BluetoothGattService 构造函数

定义

重载

名称 说明
BluetoothGattService(UUID, GattServiceType)

创建新的 BluetoothGattService。

BluetoothGattService(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

BluetoothGattService(UUID, GattServiceType)

创建新的 BluetoothGattService。

[Android.Runtime.Register(".ctor", "(Ljava/util/UUID;I)V", "")]
public BluetoothGattService(Java.Util.UUID? uuid, Android.Bluetooth.GattServiceType serviceType);
[<Android.Runtime.Register(".ctor", "(Ljava/util/UUID;I)V", "")>]
new Android.Bluetooth.BluetoothGattService : Java.Util.UUID * Android.Bluetooth.GattServiceType -> Android.Bluetooth.BluetoothGattService

参数

uuid
UUID

此服务的 UUID

serviceType
GattServiceType

此服务的类型, BluetoothGattService#SERVICE_TYPE_PRIMARY 或 BluetoothGattService#SERVICE_TYPE_SECONDARY

特性

注解

创建新的 BluetoothGattService。

Java文档android.bluetooth.BluetoothGattService.BluetoothGattService(java.util.UUID, int)。

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

适用于

BluetoothGattService(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected BluetoothGattService(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Bluetooth.BluetoothGattService : nativeint * Android.Runtime.JniHandleOwnership -> Android.Bluetooth.BluetoothGattService

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于