BluetoothGattServerCallback.OnDescriptorReadRequest 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
遠端用戶端要求讀取本地描述符。
[Android.Runtime.Register("onDescriptorReadRequest", "(Landroid/bluetooth/BluetoothDevice;IILandroid/bluetooth/BluetoothGattDescriptor;)V", "GetOnDescriptorReadRequest_Landroid_bluetooth_BluetoothDevice_IILandroid_bluetooth_BluetoothGattDescriptor_Handler")]
public virtual void OnDescriptorReadRequest(Android.Bluetooth.BluetoothDevice? device, int requestId, int offset, Android.Bluetooth.BluetoothGattDescriptor? descriptor);
[<Android.Runtime.Register("onDescriptorReadRequest", "(Landroid/bluetooth/BluetoothDevice;IILandroid/bluetooth/BluetoothGattDescriptor;)V", "GetOnDescriptorReadRequest_Landroid_bluetooth_BluetoothDevice_IILandroid_bluetooth_BluetoothGattDescriptor_Handler")>]
abstract member OnDescriptorReadRequest : Android.Bluetooth.BluetoothDevice * int * int * Android.Bluetooth.BluetoothGattDescriptor -> unit
override this.OnDescriptorReadRequest : Android.Bluetooth.BluetoothDevice * int * int * Android.Bluetooth.BluetoothGattDescriptor -> unit
參數
- device
- BluetoothDevice
請求讀取操作的遠端裝置
- requestId
- Int32
請求的本我
- offset
- Int32
偏移至特徵值
- descriptor
- BluetoothGattDescriptor
待讀的描述
- 屬性
備註
遠端用戶端要求讀取本地描述符。
申請必須打電話 BluetoothGattServer#sendResponse 完成申請。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。