summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorStanley Tng <stng@google.com>2018-04-19 21:56:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-19 21:56:38 +0000
commitfb4da73e76ed3068ecd7ef87b8f4acf188d0a867 (patch)
tree8ce4b92c698e85168322badc41ae66f3738e9876 /core/java
parent247ecfa4989c4a2a1096a9960831286cca7eaab5 (diff)
parentd0c1b23e06ef350ce9d6bb3f6fcc2f7de5e50216 (diff)
Merge "Clarify API doc for BluetoothGattServer::addService" into pi-dev
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/bluetooth/BluetoothGattServer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothGattServer.java b/core/java/android/bluetooth/BluetoothGattServer.java
index 4ed250043ae9..ef1b0bd71885 100644
--- a/core/java/android/bluetooth/BluetoothGattServer.java
+++ b/core/java/android/bluetooth/BluetoothGattServer.java
@@ -701,10 +701,14 @@ public final class BluetoothGattServer implements BluetoothProfile {
* <p>If the local device has already exposed services when this function
* is called, a service update notification will be sent to all clients.
*
+ * <p>The {@link BluetoothGattServerCallback#onServiceAdded} callback will indicate
+ * whether this service has been added successfully. Do not add another service
+ * before this callback.
+ *
* <p>Requires {@link android.Manifest.permission#BLUETOOTH} permission.
*
* @param service Service to be added to the list of services provided by this device.
- * @return true, if the service has been added successfully
+ * @return true, if the request to add service has been initiated
*/
public boolean addService(BluetoothGattService service) {
if (DBG) Log.d(TAG, "addService() - service: " + service.getUuid());