Package org.robolectric.shadows
Class ShadowUwbManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowUwbManager
-
@Implements(value=android.uwb.UwbManager.class, minSdk=31, isInAndroidSdk=false) public class ShadowUwbManager extends Object
Adds Robolectric support for UWB ranging.
-
-
Constructor Summary
Constructors Constructor Description ShadowUwbManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PersistableBundle
getSpecificationInfo()
Simply returns the bundle provided byShadowUwbManager#setSpecificationInfo()
, allowing the tester to dictate available features.protected CancellationSignal
openRangingSession(PersistableBundle params, Executor executor, android.uwb.RangingSession.Callback callback)
Instantiates aShadowRangingSession
with the adapter provided byShadowUwbManager#setUwbAdapter()
, allowing the tester dictate the results of ranging attempts.void
setSpecificationInfo(PersistableBundle specificationInfo)
Sets the bundle to be returned byUwbManager.getSpecificationInfo()
.void
setUwbAdapter(ShadowRangingSession.Adapter adapter)
Sets the UWB adapter to use for newShadowRangingSession
s.
-
-
-
Method Detail
-
getSpecificationInfo
@Implementation protected PersistableBundle getSpecificationInfo()
Simply returns the bundle provided byShadowUwbManager#setSpecificationInfo()
, allowing the tester to dictate available features.
-
openRangingSession
@Implementation protected CancellationSignal openRangingSession(PersistableBundle params, Executor executor, android.uwb.RangingSession.Callback callback)
Instantiates aShadowRangingSession
with the adapter provided byShadowUwbManager#setUwbAdapter()
, allowing the tester dictate the results of ranging attempts.
-
setUwbAdapter
public void setUwbAdapter(ShadowRangingSession.Adapter adapter)
Sets the UWB adapter to use for newShadowRangingSession
s.
-
setSpecificationInfo
public void setSpecificationInfo(PersistableBundle specificationInfo)
Sets the bundle to be returned byUwbManager.getSpecificationInfo()
.
-
-