interface IScanTargetClient (Niantic.ARDK.AR.Scanning.IScanTargetClient)
Overview
Client for requesting scan targets close to the user’s location. A scan target is a location that can be scanned and activated for VPS. More…
interface IScanTargetClient { // methods void RequestScanTargets( LatLng queryLocation, int queryRadius, Action<ScanTargetResponse> onScanTargetReceived ); Task<ScanTargetResponse> RequestScanTargetsAsync( LatLng queryLocation, int queryRadius ); };
Detailed Documentation
Client for requesting scan targets close to the user’s location. A scan target is a location that can be scanned and activated for VPS.
Use ScanTargetClientFactory to create a scan target client.
Methods
void RequestScanTargets( LatLng queryLocation, int queryRadius, Action<ScanTargetResponse> onScanTargetReceived )
Request scan targets within a given radius of a location using the callback pattern.
Parameters:
| queryLocation | Center of query. | 
| queryRadius | Radius for query between 0m and 2000m. Negative radius will default to the maximum radius of 2000m. | 
| onScanTargetReceived | Callback function to process the received ScanTargetResponse. | 
Task<ScanTargetResponse> RequestScanTargetsAsync( LatLng queryLocation, int queryRadius )
Requests scan targets within a given radius of a location using the async/await pattern.
Parameters:
| queryLocation | Center of query. | 
| queryRadius | Radius for query between 0m and 2000m. Negative radius will default to the maximum radius of 2000m. | 
Returns:
Task with the received ScanTargetResponse as result.