Android Open Source - Android-BleEventAdapter Characteristic Changed Event

From Project

Back to project page Android-BleEventAdapter.


The source code is released under:

Apache License

If you think the Android project Android-BleEventAdapter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*from  ww  w. j  a va 2  s . c  o m*/
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;

public class CharacteristicChangedEvent {
    private final BluetoothGatt mGatt;
    private final BluetoothGattCharacteristic mCharacteristic;

    public CharacteristicChangedEvent(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) {
        mGatt = gatt;
        mCharacteristic = characteristic;

    public BluetoothGatt getGatt() {
        return mGatt;

    public BluetoothGattCharacteristic getCharacteristic() {
        return mCharacteristic;

    public String toString() {
        return "CharacteristicWriteEvent{" +
                "mGatt=" + mGatt +
                ", mCharacteristic=" + mCharacteristic +

Java Source Code List