BluetoothClass.DoesClassMatch(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查类位,了解可能的蓝牙配置文件支持。
[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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。