Package org.robolectric.shadows
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.
-
Constructor Details
-
ShadowRangingSession
public ShadowRangingSession()
-
-
Method Details
-
start
Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call. -
reconfigure
Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call. -
stop
Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call. -
close
Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.
-