語言

BluetoothGattServer.ReadPhy(BluetoothDevice) 方法

定義

讀取連線的當前發射端 PHY 與接收端 PHI。

[Android.Runtime.Register("readPhy", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public void ReadPhy(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("readPhy", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.ReadPhy : Android.Bluetooth.BluetoothDevice -> unit

參數

device
BluetoothDevice

傳送此回應的遠端裝置

屬性

備註

讀取連線的當前發射端 PHY 與接收端 PHI。 這些值會回傳於 BluetoothGattServerCallback#onPhyRead

Java 文件 android.bluetooth.BluetoothGattServer.readPhy(android.bluetooth.BluetoothDevice)。

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

適用於