Package org.robolectric.shadows
Class ShadowWifiRttManager
java.lang.Object
org.robolectric.shadows.ShadowWifiRttManager
@Implements(value=android.net.wifi.rtt.WifiRttManager.class,
minSdk=28)
public class ShadowWifiRttManager
extends Object
Shadow for
WifiRttManager
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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.
-
Constructor Details
-
ShadowWifiRttManager
public ShadowWifiRttManager()
-
-
Method Details
-
startRanging
@Implementation(minSdk=28) 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. If there are no ranging results set, it will pass RangingResultCallback.STATUS_CODE_FAIL to the onRangingFailure method of the callback, also called on the executor thread. -
isAvailable
Assumes the WifiRttManager is always available. -
setRangeResults
This method sets the RangingResults that are passed to the RangingResultCallback when the shadow startRanging method is called.
-