Class ShadowWifiRttManager


  • @Config(minSdk=28)
    @Implements(android.net.wifi.rtt.WifiRttManager.class)
    public class ShadowWifiRttManager
    extends java.lang.Object
    Shadow for WifiRttManager.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isAvailable()
      Assumes the WifiRttManager is always available.
      void setRangeResults​(java.util.List<android.net.wifi.rtt.RangingResult> rangingResults)
      This method sets the RangingResults that are passed to the RangingResultCallback when the shadow startRanging method is called.
      protected void startRanging​(android.net.wifi.rtt.RangingRequest request, java.util.concurrent.Executor executor, android.net.wifi.rtt.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowWifiRttManager

        public ShadowWifiRttManager()
    • Method Detail

      • startRanging

        @Implementation(minSdk=28)
        protected void startRanging​(android.net.wifi.rtt.RangingRequest request,
                                    java.util.concurrent.Executor executor,
                                    android.net.wifi.rtt.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

        @Implementation(minSdk=28)
        protected boolean isAvailable()
        Assumes the WifiRttManager is always available.
      • setRangeResults

        public void setRangeResults​(java.util.List<android.net.wifi.rtt.RangingResult> rangingResults)
        This method sets the RangingResults that are passed to the RangingResultCallback when the shadow startRanging method is called.