BluetoothClass.DoesClassMatch(Int32) 方法

定义

检查类位,了解可能的蓝牙配置文件支持。

[Android.Runtime.Register("doesClassMatch", "(I)Z", "", ApiSince=33)]
public bool DoesClassMatch(int profile);
[<Android.Runtime.Register("doesClassMatch", "(I)Z", "", ApiSince=33)>]
member this.DoesClassMatch : int -> bool

参数

profile
Int32

要检查的配置文件

返回

此设备是否支持指定的配置文件

属性

注解

检查类位,了解可能的蓝牙配置文件支持。 这是一个简单的启发式,它尝试猜测具有给定类位的设备是否支持指定的配置文件。 对于所有设备来说,它都不准确。 它尝试在误报的一侧进行错误。

Java文档android.bluetooth.BluetoothClass.doesClassMatch(int)

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

适用于