public class BeaconSDKImp extends Object implements IBeaconSDK
| Modifier and Type | Field and Description |
|---|---|
protected static IBeaconSDK |
sInstance |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearSessionService(Context ctx) |
protected void |
finalize() |
List<ZBeacon> |
getAvailableBeacons()
Get beacons available without using callback
|
static IBeaconSDK |
getInstance(Context context) |
boolean |
isScanning()
Check beacon service is Running ?
|
void |
scanAll()
Start beacons scan without filter uuid
|
void |
setAppState(boolean foreground)
When app life cycle change, call this method to notify sdk
|
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
|
protected static volatile IBeaconSDK sInstance
public static IBeaconSDK getInstance(Context context)
public static void clearSessionService(Context ctx)
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 void setAppState(boolean foreground)
IBeaconSDKsetAppState in interface IBeaconSDKpublic 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()
IBeaconSDKgetAvailableBeacons in interface IBeaconSDK