2 * Copyright (C) 2015, The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * Binder IPC interface for receiving callbacks related to Bluetooth Low Energy
21 oneway interface IBluetoothLowEnergyCallback {
23 * Called to report the result of a call to
24 * IBluetoothLowEnergy.registerClient. |status| will be BLE_STATUS_SUCCESS (0)
25 * if the client was successfully registered. |client_if| is the owning
26 * application's unique Low Energy client handle and can be used
27 * to perform further operations on the IBluetoothLowEnergy interface.
29 void onClientRegistered(in int status, in int client_if);
31 /* Called asynchronously to notify the delegate of connection state change.
33 void OnConnectionState(in int status, in int client_id, in const char* address,
37 * Called to report BLE device scan results once a scan session is started for
38 * this client using IBluetoothLowEnergy.startScan. |scan_result| contains all
39 * the data related to the discovered BLE device.
41 void onScanResult(in ScanResult scan_result);
44 * Called to report the result of a call to
45 * IBluetoothLowEnergy.startMultiAdvertising or stopMultiAdvertising.
47 void onMultiAdvertiseCallback(in int status, in boolean is_start,
48 in AdvertiseSettings settings);