BluetoothGattCallback.OnCharacteristicRead 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 |
|---|---|
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus) |
Panggilan balik melaporkan hasil operasi baca karakteristik. |
| OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus) |
Panggilan balik melaporkan hasil operasi baca karakteristik. |
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, GattStatus)
Panggilan balik melaporkan hasil operasi baca karakteristik.
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")]
public virtual void OnCharacteristicRead(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;I)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_IHandler")>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * Android.Bluetooth.GattStatus -> unit
Parameter
- gatt
- BluetoothGatt
Klien GATT dipanggil BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Karakteristik 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 karakteristik.
Anggota ini tidak digunakan lagi. Gunakan BluetoothGattCallback#onCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, byte[], int) karena memori aman
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
OnCharacteristicRead(BluetoothGatt, BluetoothGattCharacteristic, Byte[], GattStatus)
Panggilan balik melaporkan hasil operasi baca karakteristik.
[Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)]
public virtual void OnCharacteristicRead(Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onCharacteristicRead", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[BI)V", "GetOnCharacteristicRead_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBIHandler", ApiSince=33)>]
abstract member OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
override this.OnCharacteristicRead : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] * Android.Bluetooth.GattStatus -> unit
Parameter
- gatt
- BluetoothGatt
Klien GATT dipanggil BluetoothGatt#readCharacteristic(BluetoothGattCharacteristic)
- characteristic
- BluetoothGattCharacteristic
Karakteristik yang dibaca dari perangkat jarak jauh terkait.
- value
- Byte[]
nilai karakteristik
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS jika operasi baca berhasil diselesaikan.
- Atribut
Keterangan
Panggilan balik melaporkan hasil operasi baca karakteristik.
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.