語言

BluetoothHealthAppConfiguration.Role 屬性

定義

回傳與此應用程式設定相關的角色。

public Android.Bluetooth.RoleType Role { [Android.Runtime.Register("getRole", "()I", "")] get; }
[<get: Android.Runtime.Register("getRole", "()I", "")>]
member this.Role : Android.Bluetooth.RoleType

屬性值

從BluetoothHealth#SOURCE_ROLE或BluetoothHealth#SINK_ROLE中選擇一個

屬性

備註

回傳與此應用程式設定相關的角色。

此會員已被棄用。 健康裝置設定檔(HDP)與 MCAP 協定已不再使用。 新應用程式應採用藍牙低功耗解決方案,例如 BluetoothGatt、 BluetoothAdapter#listenUsingL2capChannel()、 BluetoothDevice#createL2capChannel(int)

Java 文件 android.bluetooth.BluetoothHealthAppConfiguration.getRole()。

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

適用於