Package com.zing.zalo.zalosdk.beaconsdk
Class BeaconSDKImp
- java.lang.Object
-
- com.zing.zalo.zalosdk.beaconsdk.BeaconSDKImp
-
- All Implemented Interfaces:
IBeaconSDK
public class BeaconSDKImp extends Object implements IBeaconSDK
-
-
Field Summary
Fields Modifier and Type Field Description protected static IBeaconSDKsInstance
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()List<ZBeacon>getAvailableBeacons()static IBeaconSDKgetInstance(Context context)booleanisScanning()Check beacon service is Running ?voidscanAll()Start beacons scan without filter uuidIBeaconSDKsetBeaconNotifier(IBeaconNotifier notifier)Listen callback from SDKIBeaconSDKsetBundleOptions(Bundle bundle)options data pass to SDK.voidsetListBeacons(List<ZBeacon> beacons)Override current ranging beacons.voidstartBeacons()Start beacons scanvoidstopBeacons()Stop beacons scan
-
-
-
Field Detail
-
sInstance
@Nullable protected static volatile IBeaconSDK sInstance
-
-
Method Detail
-
getInstance
public static IBeaconSDK getInstance(@NonNull Context context)
-
setBeaconNotifier
public IBeaconSDK setBeaconNotifier(IBeaconNotifier notifier)
Description copied from interface:IBeaconSDKListen callback from SDK- Specified by:
setBeaconNotifierin interfaceIBeaconSDK- Parameters:
notifier- listener events enter/exit/ranging/error- Returns:
-
setBundleOptions
public IBeaconSDK setBundleOptions(Bundle bundle)
Description copied from interface:IBeaconSDKoptions data pass to SDK. Key get from(Bundle options)Constant- Specified by:
setBundleOptionsin interfaceIBeaconSDK- Returns:
-
finalize
protected void finalize() throws Throwable
-
isScanning
public boolean isScanning()
Description copied from interface:IBeaconSDKCheck beacon service is Running ?- Specified by:
isScanningin interfaceIBeaconSDK- Returns:
-
setListBeacons
public void setListBeacons(List<ZBeacon> beacons)
Description copied from interface:IBeaconSDKOverride current ranging beacons. If list beacons null or empty then equivalent to full scan.- Specified by:
setListBeaconsin interfaceIBeaconSDK- Parameters:
beacons- new beacons to update
-
startBeacons
public void startBeacons()
Description copied from interface:IBeaconSDKStart beacons scan- Specified by:
startBeaconsin interfaceIBeaconSDK
-
stopBeacons
public void stopBeacons()
Description copied from interface:IBeaconSDKStop beacons scan- Specified by:
stopBeaconsin interfaceIBeaconSDK
-
scanAll
public void scanAll()
Description copied from interface:IBeaconSDKStart beacons scan without filter uuid- Specified by:
scanAllin interfaceIBeaconSDK
-
getAvailableBeacons
public List<ZBeacon> getAvailableBeacons()
- Specified by:
getAvailableBeaconsin interfaceIBeaconSDK
-
-