public class ReactiveBeacons
extends java.lang.Object
| Constructor and Description |
|---|
ReactiveBeacons(android.content.Context context)
Initializes ReactiveBeacons object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBleSupported()
Checks if Bluetooth Low Energy is enabled in the current Android version
|
boolean |
isBluetoothEnabled()
Checks if Bluetooth is enabled
|
boolean |
isLocationEnabled(android.content.Context context)
Checks if location provider is enabled
|
<any> |
observe()
Creates an observable stream of BLE beacons, which can be subscribed with RxJava
|
void |
requestBluetoothAccess(android.app.Activity activity)
starts intent requesting Bluetooth connection, which can be enabled by user
if it's not enabled already
|
void |
requestLocationAccess(android.app.Activity activity)
starts dialog, which can navigate user to location setting, where user can enable location
if it's not enabled already
|
public ReactiveBeacons(android.content.Context context)
context - context of the activity or applicationpublic boolean isBluetoothEnabled()
public boolean isLocationEnabled(android.content.Context context)
context - current Contextpublic void requestBluetoothAccess(android.app.Activity activity)
activity - current Activitypublic void requestLocationAccess(android.app.Activity activity)
activity - current Activitypublic <any> observe()
public boolean isBleSupported()