语言

BluetoothClass.HasService(ServiceClass) 方法

定义

如果指定的服务类受此 BluetoothClass支持,则返回 true。

[Android.Runtime.Register("hasService", "(I)Z", "")]
public bool HasService(Android.Bluetooth.ServiceClass service);
[<Android.Runtime.Register("hasService", "(I)Z", "")>]
member this.HasService : Android.Bluetooth.ServiceClass -> bool

参数

service
ServiceClass

有效的服务类

返回

如果支持服务类,则为 true

特性

注解

如果指定的服务类受此 BluetoothClass支持,则返回 true。

有效的服务类是公共常量。BluetoothClass.Service 例如,BluetoothClass.Service#AUDIO。

Java文档android.bluetooth.BluetoothClass.hasService(int)。

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

适用于