@Config(minSdk=28) @Implements(android.net.wifi.rtt.WifiRttManager.class) public class ShadowWifiRttManager extends Object
WifiRttManager
.Constructor | Description |
---|---|
ShadowWifiRttManager() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
isAvailable() |
Assumes the WifiRttManager is always available.
|
void |
setRangeResults(List<RangingResult> rangingResults) |
This method sets the RangingResults that are passed to the RangingResultCallback when the
shadow startRanging method is called.
|
protected void |
startRanging(RangingRequest request,
Executor executor,
RangingResultCallback callback) |
If there are RangingResults set by the setRangeResults method of this shadow class, this method
will call the onRangingResults method of the callback on the executor thread and pass the list
of RangingResults.
|
@Implementation(minSdk=28) protected void startRanging(RangingRequest request, Executor executor, RangingResultCallback callback)
@Implementation(minSdk=28) protected boolean isAvailable()
public void setRangeResults(List<RangingResult> rangingResults)