BluetoothClass.HasService(ServiceClass) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果指定的服务类受此 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。