Langue

BluetoothGattServerCallback.OnDescriptorReadRequest Méthode

Définition

Un client distant a demandé de lire un descripteur local.

[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

Paramètres

device
BluetoothDevice

Appareil distant qui a demandé l’opération de lecture

requestId
Int32

ID de la requête

offset
Int32

Décalage dans la valeur de la caractéristique

descriptor
BluetoothGattDescriptor

Descripteur à lire

Attributs

Remarques

Un client distant a demandé de lire un descripteur local.

Une application doit appeler BluetoothGattServer#sendResponse pour terminer la demande.

Java documentation pour android.bluetooth.BluetoothGattServerCallback.onDescriptorReadRequest(android.bluetooth.BluetoothDevice, int, int, android.bluetooth.BluetoothGattDescriptor).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à