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
有效服務類別
傳回
若服務類別被支援,則為真
- 屬性
備註
若指定的服務類別被此支援 BluetoothClass,則回傳 true。
有效的服務類別是 中的 BluetoothClass.Service公開常數。 例如: BluetoothClass.Service#AUDIO 。
Java 文件 android.bluetooth.BluetoothClass.hasService(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。