BluetoothGattCallback.OnCharacteristicRead Metode

Definisi

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

Java dokumentasi untuk android.bluetooth.BluetoothGattCallback.onCharacteristicRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic, int).

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.

Java dokumentasi untuk android.bluetooth.BluetoothGattCallback.onCharacteristicRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic, byte[], int).

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