diff options
author | Andre Eisenbach <andre@broadcom.com> | 2014-03-25 06:31:50 -0700 |
---|---|---|
committer | Zhihai Xu <zhihaixu@google.com> | 2014-03-25 18:02:06 -0700 |
commit | 91057ef842c47e70f4b97fafc950bed6c4382f03 (patch) | |
tree | 7044da5f58de1ed202f2a549bb4b8ac97147bdc0 /framework/java/android/bluetooth/BluetoothGattCallback.java | |
parent | 47878be5c835261f3aad0a73b73beed8a427e6d1 (diff) |
LE: Add API to configure MTU for a given connection (3/4)
bug:13571470
Change-Id: I3619617eaf864701a35f7802bc71805784d768d0
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattCallback.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothGattCallback.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattCallback.java b/framework/java/android/bluetooth/BluetoothGattCallback.java index 80ea4a6956..5180259cc1 100644 --- a/framework/java/android/bluetooth/BluetoothGattCallback.java +++ b/framework/java/android/bluetooth/BluetoothGattCallback.java @@ -138,4 +138,19 @@ public abstract class BluetoothGattCallback { */ public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { } + + /** + * Callback indicating the MTU for a given device connection has changed. + * + * This callback is triggered in response to the + * {@link BluetoothGatt#configureMTU} function, or in response to a connection + * event. + * + * @param gatt GATT client invoked {@link BluetoothGatt#configureMTU} + * @param mtu The new MTU size + * @param status {@link BluetoothGatt#GATT_SUCCESS} if the MTU has been changed successfully + * @hide + */ + public void onConfigureMTU(BluetoothGatt gatt, int mtu, int status) { + } } |