@Implements(value=android.telephony.ims.ImsMmTelManager.class, minSdk=29, looseSignatures=true, isInAndroidSdk=false) public class ShadowImsMmTelManager extends Object
Constructor | Description |
---|---|
ShadowImsMmTelManager() |
@Implementation protected void __constructor__(int subId)
public void setImsAvailableOnDevice(boolean imsAvailableOnDevice)
ImsException
to be thrown whenever methods requiring IMS support are invoked including registerImsRegistrationCallback(Executor, RegistrationCallback)
and registerMmTelCapabilityCallback(Executor, CapabilityCallback)
.@Implementation protected void registerImsRegistrationCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.RegistrationCallback c) throws ImsException
ImsException
@Implementation protected void unregisterImsRegistrationCallback(@NonNull ImsMmTelManager.RegistrationCallback c)
public void setImsRegistering(int imsRegistrationTech)
ImsMmTelManager.RegistrationCallback.onRegistering(int)
for all registered ImsMmTelManager.RegistrationCallback
callbacks.public void setImsRegistered(int imsRegistrationTech)
ImsMmTelManager.RegistrationCallback.onRegistered(int)
for all registered ImsMmTelManager.RegistrationCallback
callbacks.public void setImsUnregistered(@NonNull ImsReasonInfo imsReasonInfo)
ImsMmTelManager.RegistrationCallback.onUnregistered(ImsReasonInfo)
for all registered ImsMmTelManager.RegistrationCallback
callbacks.@Implementation protected void registerMmTelCapabilityCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.CapabilityCallback c) throws ImsException
ImsException
@Implementation protected void unregisterMmTelCapabilityCallback(@NonNull ImsMmTelManager.CapabilityCallback c)
@Implementation protected boolean isAvailable(int capability, int imsRegTech)
public void setMmTelCapabilitiesAvailable(@NonNull MmTelFeature.MmTelCapabilities capabilities)
MmTelFeature.MmTelCapabilities
. Only invokes ImsMmTelManager.CapabilityCallback.onCapabilitiesStatusChanged(MmTelCapabilities)
if IMS has been registered
using setImsUnregistered(ImsReasonInfo)
.public int getSubscriptionId()
@Implementation protected static ImsMmTelManager createForSubscriptionId(int subId)
@Resetter public static void clearExistingInstances()