Android Open Source - BleAdapter Discovered Devices Event






From Project

Back to project page BleAdapter.

License

The source code is released under:

Apache License

If you think the Android project BleAdapter 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

package com.indy.labs.android.BleEventAdapter.events;
//from  w w w  . j a va2  s .c  o  m
import android.bluetooth.BluetoothDevice;

import java.util.Arrays;
import java.util.Set;

public class DiscoveredDevicesEvent {

    private final BluetoothDevice[] bluetoothDevices;
    private final BluetoothDevice device;

    public DiscoveredDevicesEvent(BluetoothDevice device, Set<BluetoothDevice> mBluetoothDevices) {
        this.device = device;
        bluetoothDevices = mBluetoothDevices.toArray(new BluetoothDevice[mBluetoothDevices.size()]);
    }

    public BluetoothDevice[] getBluetoothDevices() {
        return bluetoothDevices;
    }

    public BluetoothDevice getDevice() {
        return device;
    }

    @Override
    public String toString() {
        return "DiscoveredDevicesEvent{" +
                "bluetoothDevices=" + Arrays.toString(bluetoothDevices) +
                '}';
    }
}




Java Source Code List

com.indy.labs.android.BleEventAdapter.BleEventAdapter.java
com.indy.labs.android.BleEventAdapter.BleEventBus.java
com.indy.labs.android.BleEventAdapter.EventLogger.java
com.indy.labs.android.BleEventAdapter.events.CharacteristicChangedEvent.java
com.indy.labs.android.BleEventAdapter.events.CharacteristicReadEvent.java
com.indy.labs.android.BleEventAdapter.events.CharacteristicWriteEvent.java
com.indy.labs.android.BleEventAdapter.events.DescriptorReadEvent.java
com.indy.labs.android.BleEventAdapter.events.DescriptorWriteEvent.java
com.indy.labs.android.BleEventAdapter.events.DiscoveredDevicesEvent.java
com.indy.labs.android.BleEventAdapter.events.DiscoveryServiceEvent.java
com.indy.labs.android.BleEventAdapter.events.GattConnectionStateChangedEvent.java
com.indy.labs.android.BleEventAdapter.events.ReadRemoteRssiEvent.java
com.indy.labs.android.BleEventAdapter.events.ReliableWriteCompleted.java
com.indy.labs.android.BleEventAdapter.events.ScanningEvent.java
com.indy.labs.android.BleEventAdapter.events.ServiceDiscoveredEvent.java
com.indy.labs.android.BleEventAdapter.service.discovery.device.DeviceDiscoveryService.java
com.indy.labs.android.BleEventAdapter.service.gatt.GattConnectionState.java
com.indy.labs.android.BleEventAdapter.service.gatt.GattService.java