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 interfaceShadowRangingSession.AdapterAdapter 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 voidclose()Forwards parameters and the session's callback to the Shadow's adapter, allowing the tester to dictate the results of the call.protected voidreconfigure(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 voidstart(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 voidstop()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.
-