get Nearby Beacons
Scans for beacons in the proximity. The SDK scans for the beacons identified using the uuid, major and minor and checks for the result every 5 seconds. The major and minor here are optional parameters. If the list of scanned beacons is not empty, the same is returned via the callback and the scan is stopped, otherwise, the scan continues. The scanning is done upto a period of 30 seconds in case no beacons matching the identifiers are found in the proximity, after which the scan is stopped, and an empty list is returned via the callback.
FairmaticBeaconScanCallback callback is used to return a list of FairmaticScannedBeaconInfo identified by unique uuid, major and minor along with the result of the operation.
Callback is made on the Main Thread.
Parameters: context - The context of the enclosing application. uuid - The UUID component of the beacon identifier. This parameter cannot be null. A valid UUID string contains of 32 hexadecimal digits, split into 5 groups, separated by hyphens. Ex: f7826da6-4fa2-4e98-8024-bc5b71e0893e
The purpose of the UUID is to distinguish the target beacon from all other beacons in the proximity.
@param major - Major component of the iBeacon identifier. Its value can be in the range 0, 65535. This parameter is optional. @param minor - Minor component of the iBeacon identifier. Its value can be in the range 0, 65535. This parameter is optional. @param beaconScanCallback - Called with the result of the scanning operation and the list of scanned beacons. This parameter cannot be null.
If the scan fails to start due to any reason, the error is returned via the callback and the list of beacons returned along with it is null. Otherwise, FairmaticVehicleTaggingOperationResult.SUCCESS is returned as the result of the operation along with the list of beacons which can be empty or non-empty based on if any beacon is found in the proximity.