Package org.robolectric.shadows
Class ShadowRcsUceAdapter
java.lang.Object
org.robolectric.shadows.ShadowRcsUceAdapter
@Implements(value=android.telephony.ims.RcsUceAdapter.class, isInAndroidSdk=false, minSdk=30) public class ShadowRcsUceAdapter extends Object
A shadow for
RcsUceAdapter
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowRcsUceAdapter.CapabilityFailureInfo
A data class holding the info for a failed capabilities exchange -
Constructor Summary
Constructors Constructor Description ShadowRcsUceAdapter()
-
Method Summary
Modifier and Type Method Description protected boolean
isUceSettingEnabled()
Returns the value specified for thesubscriptionId
corresponding to theRcsUceAdapter
bysetUceSettingEnabledForSubscriptionId(int, boolean)
.protected void
requestAvailability(Uri contactNumber, Executor executor, RcsUceAdapter.CapabilitiesCallback c)
protected void
requestCapabilities(Collection<Uri> contactNumbers, Executor executor, RcsUceAdapter.CapabilitiesCallback c)
static void
reset()
static void
setCapabilitiesFailureForUri(Uri uri, ShadowRcsUceAdapter.CapabilityFailureInfo failureInfo)
static void
setCapabilitiesForUri(Uri uri, RcsContactUceCapability capabilities)
static void
setUceSettingEnabledForSubscriptionId(int subscriptionId, boolean uceSettingEnabled)
Overrides the value returned byRcsUceAdapter.isUceSettingEnabled()
for RcsUceAdapters associated withsubscriptionId
.
-
Constructor Details
-
ShadowRcsUceAdapter
public ShadowRcsUceAdapter()
-
-
Method Details
-
setUceSettingEnabledForSubscriptionId
public static void setUceSettingEnabledForSubscriptionId(int subscriptionId, boolean uceSettingEnabled)Overrides the value returned byRcsUceAdapter.isUceSettingEnabled()
for RcsUceAdapters associated withsubscriptionId
. -
reset
-
isUceSettingEnabled
Returns the value specified for thesubscriptionId
corresponding to theRcsUceAdapter
bysetUceSettingEnabledForSubscriptionId(int, boolean)
. If no value has been specified, returns false. -
setCapabilitiesForUri
-
setCapabilitiesFailureForUri
public static void setCapabilitiesFailureForUri(Uri uri, ShadowRcsUceAdapter.CapabilityFailureInfo failureInfo) -
requestCapabilities
@Implementation(minSdk=31) protected void requestCapabilities(Collection<Uri> contactNumbers, Executor executor, RcsUceAdapter.CapabilitiesCallback c) -
requestAvailability
@Implementation(minSdk=31) protected void requestAvailability(Uri contactNumber, Executor executor, RcsUceAdapter.CapabilitiesCallback c)
-