Langue

BluetoothGattServerCallback.OnExecuteWrite Méthode

Définition

Exécutez toutes les opérations d’écriture en attente pour cet appareil.

[Android.Runtime.Register("onExecuteWrite", "(Landroid/bluetooth/BluetoothDevice;IZ)V", "GetOnExecuteWrite_Landroid_bluetooth_BluetoothDevice_IZHandler")]
public virtual void OnExecuteWrite(Android.Bluetooth.BluetoothDevice? device, int requestId, bool execute);
[<Android.Runtime.Register("onExecuteWrite", "(Landroid/bluetooth/BluetoothDevice;IZ)V", "GetOnExecuteWrite_Landroid_bluetooth_BluetoothDevice_IZHandler")>]
abstract member OnExecuteWrite : Android.Bluetooth.BluetoothDevice * int * bool -> unit
override this.OnExecuteWrite : Android.Bluetooth.BluetoothDevice * int * bool -> unit

Paramètres

device
BluetoothDevice

Appareil distant qui a demandé les opérations d’écriture

requestId
Int32

ID de la requête

execute
Boolean

Indique si les écritures en attente doivent être exécutées (true) ou annulées (false)

Attributs

Remarques

Exécutez toutes les opérations d’écriture en attente pour cet appareil.

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

Java documentation pour android.bluetooth.BluetoothGattServerCallback.onExecuteWrite(android.bluetooth.BluetoothDevice, int, boolean).

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 à