Package org.robolectric.shadows
Class ShadowImsMmTelManager
java.lang.Object
org.robolectric.shadows.ShadowImsMmTelManager
@Implements(value=android.telephony.ims.ImsMmTelManager.class, minSdk=29, looseSignatures=true, isInAndroidSdk=false) public class ShadowImsMmTelManager extends Object
Supports IMS by default. IMS unregistered by default.
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Integer,ImsMmTelManager>
existingInstances
-
Constructor Summary
Constructors Constructor Description ShadowImsMmTelManager()
-
Method Summary
-
Field Details
-
Constructor Details
-
ShadowImsMmTelManager
public ShadowImsMmTelManager()
-
-
Method Details
-
__constructor__
-
setImsAvailableOnDevice
public void setImsAvailableOnDevice(boolean imsAvailableOnDevice)Sets whether IMS is available on the device. Setting this to false will causeImsException
to be thrown whenever methods requiring IMS support are invoked includingregisterImsRegistrationCallback(Executor, RegistrationCallback)
andregisterMmTelCapabilityCallback(Executor, CapabilityCallback)
. -
registerImsRegistrationCallback
@Implementation protected void registerImsRegistrationCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.RegistrationCallback c) throws ImsException- Throws:
ImsException
-
unregisterImsRegistrationCallback
@Implementation protected void unregisterImsRegistrationCallback(@NonNull ImsMmTelManager.RegistrationCallback c) -
setImsRegistering
public void setImsRegistering(int imsRegistrationTech)TriggersImsMmTelManager.RegistrationCallback.onRegistering(int)
for all registeredImsMmTelManager.RegistrationCallback
callbacks. -
setImsRegistered
public void setImsRegistered(int imsRegistrationTech)TriggersImsMmTelManager.RegistrationCallback.onRegistered(int)
for all registeredImsMmTelManager.RegistrationCallback
callbacks. -
setImsUnregistered
TriggersImsMmTelManager.RegistrationCallback.onUnregistered(ImsReasonInfo)
for all registeredImsMmTelManager.RegistrationCallback
callbacks. -
registerMmTelCapabilityCallback
@Implementation protected void registerMmTelCapabilityCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.CapabilityCallback c) throws ImsException- Throws:
ImsException
-
unregisterMmTelCapabilityCallback
@Implementation protected void unregisterMmTelCapabilityCallback(@NonNull ImsMmTelManager.CapabilityCallback c) -
isAvailable
-
setMmTelCapabilitiesAvailable
Sets the availableMmTelFeature.MmTelCapabilities
. Only invokesImsMmTelManager.CapabilityCallback.onCapabilitiesStatusChanged(MmTelCapabilities)
if IMS has been registered usingsetImsUnregistered(ImsReasonInfo)
. -
getSubscriptionId
public int getSubscriptionId()Get subscription id -
createForSubscriptionId
Returns only one instance per subscription id. -
clearExistingInstances
-