BluetoothGattCallback.OnDescriptorRead Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
| Nama | Deskripsi |
|---|---|
| OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[]) |
Panggilan balik melaporkan hasil operasi baca deskriptor. |
| OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus) |
Panggilan balik melaporkan hasil operasi baca deskriptor. |
OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus, Byte[])
Panggilan balik melaporkan hasil operasi baca deskriptor.
[Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I[B)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IarrayBHandler", ApiSince=33)]
public virtual void OnDescriptorRead(Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, Android.Bluetooth.GattStatus status, byte[] value);
[<Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I[B)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IarrayBHandler", ApiSince=33)>]
abstract member OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus * byte[] -> unit
override this.OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus * byte[] -> unit
Parameter
- gatt
- BluetoothGatt
Klien GATT dipanggil BluetoothGatt#readDescriptor
- descriptor
- BluetoothGattDescriptor
Deskriptor yang dibaca dari perangkat jarak jauh terkait.
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS jika operasi baca berhasil diselesaikan
- value
- Byte[]
nilai deskriptor pada saat operasi baca
- Atribut
Keterangan
Panggilan balik melaporkan hasil operasi baca deskriptor.
Bagian dari halaman ini adalah modifikasi berdasarkan pekerjaan yang dibuat dan dibagikan oleh Android Open Source Project dan digunakan sesuai dengan istilah yang dijelaskan dalam Lisensi Creative Commons 2.5 Lisensi Atribusi.
Berlaku untuk
OnDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, GattStatus)
Panggilan balik melaporkan hasil operasi baca deskriptor.
[Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IHandler")]
public virtual void OnDescriptorRead(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattDescriptor? descriptor, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onDescriptorRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattDescriptor;I)V", "GetOnDescriptorRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattDescriptor_IHandler")>]
abstract member OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus -> unit
override this.OnDescriptorRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattDescriptor * Android.Bluetooth.GattStatus -> unit
Parameter
- gatt
- BluetoothGatt
Klien GATT dipanggil BluetoothGatt#readDescriptor
- descriptor
- BluetoothGattDescriptor
Deskriptor yang dibaca dari perangkat jarak jauh terkait.
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS jika operasi baca berhasil diselesaikan
- Atribut
Keterangan
Panggilan balik melaporkan hasil operasi baca deskriptor.
Anggota ini tidak digunakan lagi. Gunakan BluetoothGattCallback#onDescriptorRead(BluetoothGatt, BluetoothGattDescriptor, int, byte[]) karena memori aman dengan memberikan nilai deskriptor pada saat dibaca.
Bagian dari halaman ini adalah modifikasi berdasarkan pekerjaan yang dibuat dan dibagikan oleh Android Open Source Project dan digunakan sesuai dengan istilah yang dijelaskan dalam Lisensi Creative Commons 2.5 Lisensi Atribusi.