blob: 72cb61827737ac385697a31194994fd20e6274b7 [file] [log] [blame]
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -08001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16package android.bluetooth;
17
18import android.os.ParcelUuid;
Jakub Pawlowski8d312a82016-03-01 18:50:27 -080019import android.bluetooth.BluetoothGattService;
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -080020
21/**
22 * Callback definitions for interacting with BLE / GATT
23 * @hide
24 */
Wei Wang53fe28b2014-06-11 21:04:15 -070025oneway interface IBluetoothGattCallback {
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -080026 void onClientRegistered(in int status, in int clientIf);
27 void onClientConnectionState(in int status, in int clientIf,
28 in boolean connected, in String address);
Jakub Pawlowski8d312a82016-03-01 18:50:27 -080029 void onSearchComplete(in String address, in List<BluetoothGattService> services, in int status);
Jakub Pawlowskia9e27ec2016-03-17 16:00:16 -070030 void onCharacteristicRead(in String address, in int status, in int handle, in byte[] value);
31 void onCharacteristicWrite(in String address, in int status, in int handle);
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -080032 void onExecuteWrite(in String address, in int status);
Jakub Pawlowskia9e27ec2016-03-17 16:00:16 -070033 void onDescriptorRead(in String address, in int status, in int handle, in byte[] value);
34 void onDescriptorWrite(in String address, in int status, in int handle);
35 void onNotify(in String address, in int handle, in byte[] value);
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -080036 void onReadRemoteRssi(in String address, in int rssi, in int status);
Andre Eisenbach580b0a12014-03-25 06:31:50 -070037 void onConfigureMTU(in String address, in int mtu, in int status);
Ganesh Ganapathi Batta99081122013-02-05 15:28:33 -080038}