summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothGattServerCallback.java
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2014-11-18 11:34:26 -0800
committerAndre Eisenbach <eisenbach@google.com>2014-11-26 12:58:44 -0800
commit5682be9ee6f7008af7d4ac0deca2e092d6d76265 (patch)
treeded2fcb1430f27123f435a95251a17cd35bcf7ff /framework/java/android/bluetooth/BluetoothGattServerCallback.java
parent0f5abcc53cc66624550ba29c2bb5f9d1751a1bcc (diff)
Add server-side callback for change in MTU (4/4)
When a client requests to update the LE transport MTU, the server currently does not get notified and can therefor not properly size notifications appropriate to the current MTU. Bug: 18388114 Change-Id: I515bfc2cc9846490d57de71860f41ea9a61fa243
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattServerCallback.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothGattServerCallback.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattServerCallback.java b/framework/java/android/bluetooth/BluetoothGattServerCallback.java
index 1dd06f2ce1..2afcf9a322 100644
--- a/framework/java/android/bluetooth/BluetoothGattServerCallback.java
+++ b/framework/java/android/bluetooth/BluetoothGattServerCallback.java
@@ -145,4 +145,16 @@ public abstract class BluetoothGattServerCallback {
*/
public void onNotificationSent(BluetoothDevice device, int status) {
}
+
+ /**
+ * Callback indicating the MTU for a given device connection has changed.
+ *
+ * <p>This callback will be invoked if a remote client has requested to change
+ * the MTU for a given connection.
+ *
+ * @param device The remote device that requested the MTU change
+ * @param mtu The new MTU size
+ */
+ public void onMtuChanged(BluetoothDevice device, int mtu) {
+ }
}