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 forRcsUceAdapter
.
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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
.
-
-
-
Method Detail
-
setUceSettingEnabledForSubscriptionId
public static void setUceSettingEnabledForSubscriptionId(int subscriptionId, boolean uceSettingEnabled)
Overrides the value returned byRcsUceAdapter.isUceSettingEnabled()
for RcsUceAdapters associated withsubscriptionId
.
-
reset
@Resetter public static void reset()
-
isUceSettingEnabled
@Implementation protected boolean isUceSettingEnabled()
Returns the value specified for thesubscriptionId
corresponding to theRcsUceAdapter
bysetUceSettingEnabledForSubscriptionId(int, boolean)
. If no value has been specified, returns false.
-
setCapabilitiesForUri
public static void setCapabilitiesForUri(Uri uri, RcsContactUceCapability capabilities)
-
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)
-
-