Idioma

BluetoothGattCallback.OnMtuChanged(BluetoothGatt, Int32, GattStatus) Método

Definição

O retorno de chamada que indica a MTU de uma determinada conexão de dispositivo foi alterado.

[Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothGatt_IIHandler")]
public virtual void OnMtuChanged(Android.Bluetooth.BluetoothGatt? gatt, int mtu, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothGatt_IIHandler")>]
abstract member OnMtuChanged : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit
override this.OnMtuChanged : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit

Parâmetros

gatt
BluetoothGatt

Cliente GATT invocado BluetoothGatt#requestMtu

mtu
Int32

O novo tamanho de MTU

status
GattStatus

BluetoothGatt#GATT_SUCCESS se a MTU tiver sido alterada com êxito

Atributos

Comentários

O retorno de chamada que indica a MTU de uma determinada conexão de dispositivo foi alterado.

Esse retorno de chamada é disparado em resposta à BluetoothGatt#requestMtu função ou em resposta a um evento de conexão.

Java documentação para android.bluetooth.BluetoothGattCallback.onMtuChanged(android.bluetooth.BluetoothGatt, int, int).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a