Class ShadowRangingSession

java.lang.Object
org.robolectric.shadows.ShadowRangingSession

@Implements(value=android.uwb.RangingSession.class,
            minSdk=31,
            isInAndroidSdk=false)
public class ShadowRangingSession
extends Object
Adds Robolectric support for UWB ranging.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static interface  ShadowRangingSession.Adapter
    Adapter interface for state change events, provided by the tester to dictate ranging results.
  • Constructor Summary

    Constructors 
    Constructor Description
    ShadowRangingSession()  
  • Method Summary

    Modifier and Type Method Description
    protected void close()
    Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    protected void reconfigure​(PersistableBundle params)
    Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    protected void start​(PersistableBundle params)
    Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    protected void stop()
    Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • start

      @Implementation protected void start​(PersistableBundle params)
      Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    • reconfigure

      @Implementation protected void reconfigure​(PersistableBundle params)
      Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    • stop

      @Implementation protected void stop()
      Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
    • close

      @Implementation protected void close()
      Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.