語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於