| java.lang.Object | |
| ↳ | android.bluetooth.BluetoothGattCallback | 
       This abstract class is used to implement
       
        
         BluetoothGatt
        
       
       callbacks.
      
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          | 
       ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        
          
          Callback triggered as a result of a remote characteristic notification.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback reporting the result of a characteristic read operation.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback indicating the result of a characteristic write operation.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback indicating when GATT client has connected/disconnected to/from a remote
 GATT server.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback reporting the result of a descriptor read operation.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback indicating the result of a descriptor write operation.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback reporting the RSSI for a remote device connection.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback invoked when a reliable write transaction has been completed.
          
         | 
       ||||||||||
| 
          | 
        
          
          Callback invoked when the list of remote services, characteristics and descriptors
 for the remote device have been updated, ie new services have been discovered.
          
         | 
       ||||||||||
| 
         
          [Expand]
         
          
          Inherited Methods
          
         | 
       |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
         
           
         
         From class
         
          java.lang.Object
         
          | 
       |||||||||||
Callback triggered as a result of a remote characteristic notification.
| gatt | GATT client the characteristic is associated with | 
|---|---|
| characteristic | Characteristic that has been updated as a result of a remote notification event. | 
Callback reporting the result of a characteristic read operation.
| gatt | 
           GATT client invoked
           
            
             readCharacteristic(BluetoothGattCharacteristic)
            
           
           | 
         
|---|---|
| characteristic | Characteristic that was read from the associated remote device. | 
| status | 
           
            
             GATT_SUCCESS
            
           
           if the read operation
               was completed successfully.
           | 
         
Callback indicating the result of a characteristic write operation.
If this callback is invoked while a reliable write transaction is in progress, the value of the characteristic represents the value reported by the remote device. An application should compare this value to the desired value to be written. If the values don't match, the application must abort the reliable write transaction.
| gatt | 
           GATT client invoked
           
            
             writeCharacteristic(BluetoothGattCharacteristic)
            
           
           | 
         
|---|---|
| characteristic | Characteristic that was written to the associated remote device. | 
| status | 
           The result of the write operation
           
            
             GATT_SUCCESS
            
           
           if the operation succeeds.
           | 
         
Callback indicating when GATT client has connected/disconnected to/from a remote GATT server.
| gatt | GATT client | 
|---|---|
| status | 
           Status of the connect or disconnect operation.
           
            
             GATT_SUCCESS
            
           
           if the operation succeeds.
           | 
         
| newState | 
           Returns the new connection state. Can be one of
           
            
             STATE_DISCONNECTED
            
           
           or
           
            
             STATE_CONNECTED
            
           
           | 
         
Callback reporting the result of a descriptor read operation.
| gatt | 
           GATT client invoked
           
            
             readDescriptor(BluetoothGattDescriptor)
            
           
           | 
         
|---|---|
| descriptor | Descriptor that was read from the associated remote device. | 
| status | 
           
            
             GATT_SUCCESS
            
           
           if the read operation
               was completed successfully
           | 
         
Callback indicating the result of a descriptor write operation.
| gatt | 
           GATT client invoked
           
            
             writeDescriptor(BluetoothGattDescriptor)
            
           
           | 
         
|---|---|
| descriptor | Descriptor that was writte to the associated remote device. | 
| status | 
           The result of the write operation
           
            
             GATT_SUCCESS
            
           
           if the operation succeeds.
           | 
         
         Callback reporting the RSSI for a remote device connection.
 This callback is triggered in response to the
         
          
           readRemoteRssi()
          
         
         function.
        
| gatt | 
           GATT client invoked
           
            
             readRemoteRssi()
            
           
           | 
         
|---|---|
| rssi | The RSSI value for the remote device | 
| status | 
           
            
             GATT_SUCCESS
            
           
           if the RSSI was read successfully
           | 
         
Callback invoked when a reliable write transaction has been completed.
| gatt | 
           GATT client invoked
           
            
             executeReliableWrite()
            
           
           | 
         
|---|---|
| status | 
           
            
             GATT_SUCCESS
            
           
           if the reliable write
               transaction was executed successfully
           | 
         
Callback invoked when the list of remote services, characteristics and descriptors for the remote device have been updated, ie new services have been discovered.
| gatt | 
           GATT client invoked
           
            
             discoverServices()
            
           
           | 
         
|---|---|
| status | 
           
            
             GATT_SUCCESS
            
           
           if the remote device
               has been explored successfully.
           |