Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.relayr.ble; /*from ww w .ja va 2s .com*/ import java.util.Collection; import java.util.List; import rx.Observable; import rx.Subscriber; class NullableRelayrBleSdk extends RelayrBleSdk { public Observable<List<BleDevice>> scan(Collection<BleDeviceType> deviceTypes) { return Observable.create(new Observable.OnSubscribe<List<BleDevice>>() { @Override public void call(Subscriber<? super List<BleDevice>> subscriber) { } }); } public void stop() { } public boolean isScanning() { return false; } /*@Override public SocketClient getBleSocketClient() { return new SocketClient() { @Override public Subscription subscribe(TransmitterDevice device, Subscriber<Object> subscriber) { return new Subscription() { @Override public void unsubscribe() { } @Override public boolean isUnsubscribed() { return false; } }; } @Override public void unSubscribe(String sensorId) { } }; }*/ }