BluetoothGattServer.GetService(UUID) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從此裝置提供的服務列表中回傳 a BluetoothGattService 。
[Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")]
public Android.Bluetooth.BluetoothGattService? GetService(Java.Util.UUID? uuid);
[<Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")>]
member this.GetService : Java.Util.UUID -> Android.Bluetooth.BluetoothGattService
參數
- uuid
- UUID
所請求服務的 UUID
傳回
若支援則使用藍牙加特服務,若此裝置未提供該請求服務則為空。
- 屬性
備註
從此裝置提供的服務列表中回傳 a BluetoothGattService 。
若存在多個由 UUID 識別的服務實例,則回傳該服務的第一個實例。
Java 文件 android.bluetooth.BluetoothGattServer.getService(java.util.UUID)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。