BluetoothGattCallback.OnServicesDiscovered(BluetoothGatt, GattStatus) Method

Definition

Callback invoked when the list of remote services, characteristics and descriptors for the remote device have been updated, ie new services have been discovered.

[Android.Runtime.Register("onServicesDiscovered", "(Landroid/bluetooth/BluetoothGatt;I)V", "GetOnServicesDiscovered_Landroid_bluetooth_BluetoothGatt_IHandler")]
public virtual void OnServicesDiscovered (Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onServicesDiscovered", "(Landroid/bluetooth/BluetoothGatt;I)V", "GetOnServicesDiscovered_Landroid_bluetooth_BluetoothGatt_IHandler")>]
abstract member OnServicesDiscovered : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.GattStatus -> unit
override this.OnServicesDiscovered : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.GattStatus -> unit

Parameters

gatt
BluetoothGatt

GATT client invoked BluetoothGatt#discoverServices

status
GattStatus

BluetoothGatt#GATT_SUCCESS if the remote device has been explored successfully.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattCallback.onServicesDiscovered(android.bluetooth.BluetoothGatt, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to