Package org.robolectric.shadows
Class ShadowCallRedirectionService
java.lang.Object
org.robolectric.shadows.ShadowCallRedirectionService
@Implements(value=android.telecom.CallRedirectionService.class,
            minSdk=29)
public class ShadowCallRedirectionService
extends Object
Robolectric shadow to support 
CallRedirectionService.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe result of the redirection attempt.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.robolectric.shadows.ShadowCallRedirectionService.CallRedirectionServiceReflector
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidReturns the last capturedShadowCallRedirectionService.RedirectionResult.voidplaceCall(Uri uri, PhoneAccountHandle phoneAccountHandle, boolean allowInteractiveResponse) Place a call to be processed by theCallRedirectionService.protected voidprotected voidredirectCall(Uri handle, PhoneAccountHandle initialPhoneAccount, boolean isInteractiveResponseAllowed) static voidreset()
- 
Field Details- 
callRedirectionServiceReflector@ReflectorObject protected org.robolectric.shadows.ShadowCallRedirectionService.CallRedirectionServiceReflector callRedirectionServiceReflector
 
- 
- 
Constructor Details- 
ShadowCallRedirectionServicepublic ShadowCallRedirectionService()
 
- 
- 
Method Details- 
placeCallpublic void placeCall(Uri uri, PhoneAccountHandle phoneAccountHandle, boolean allowInteractiveResponse) Place a call to be processed by theCallRedirectionService. This will trigger theCallRedirectionService.onPlaceCall(android.net.Uri, android.telecom.PhoneAccountHandle, boolean)method with the provided arguments.
- 
getRedirectionResultReturns the last capturedShadowCallRedirectionService.RedirectionResult.
- 
reset
- 
redirectCall@Implementation protected void redirectCall(Uri handle, PhoneAccountHandle initialPhoneAccount, boolean isInteractiveResponseAllowed) 
- 
placeCallUnmodified
- 
cancelCall
 
-