public class BeaconSDKImp extends Object implements IBeaconSDK
| Modifier and Type | Field and Description |
|---|---|
protected static IBeaconSDK |
sInstance |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
List<ZBeacon> |
getAvailableBeacons() |
static IBeaconSDK |
getInstance(Context context) |
boolean |
isScanning()
Check beacon service is Running ?
|
void |
scanAll()
Start beacons scan without filter uuid
|
IBeaconSDK |
setBeaconNotifier(IBeaconNotifier notifier)
Listen callback from SDK
|
IBeaconSDK |
setBundleOptions(JSONObject data)
options data pass to SDK.
|
void |
setListBeacons(List<ZBeacon> beacons)
Override current ranging beacons.
|
void |
startBeacons()
Start beacons scan
|
void |
stopBeacons()
Stop beacons scan
|
@Nullable protected static volatile IBeaconSDK sInstance
public static IBeaconSDK getInstance(@NonNull Context context)
public IBeaconSDK setBeaconNotifier(IBeaconNotifier notifier)
IBeaconSDKsetBeaconNotifier in interface IBeaconSDKnotifier - listener events enter/exit/ranging/errorpublic IBeaconSDK setBundleOptions(JSONObject data)
IBeaconSDKConstant (Bundle options)setBundleOptions in interface IBeaconSDKprotected void finalize()
throws Throwable
public boolean isScanning()
IBeaconSDKisScanning in interface IBeaconSDKpublic void setListBeacons(List<ZBeacon> beacons)
IBeaconSDKsetListBeacons in interface IBeaconSDKbeacons - new beacons to updatepublic void startBeacons()
IBeaconSDKstartBeacons in interface IBeaconSDKpublic void stopBeacons()
IBeaconSDKstopBeacons in interface IBeaconSDKpublic void scanAll()
IBeaconSDKscanAll in interface IBeaconSDKpublic List<ZBeacon> getAvailableBeacons()
getAvailableBeacons in interface IBeaconSDK