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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The result of the redirection attempt. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.robolectric.shadows.ShadowCallRedirectionService.CallRedirectionServiceReflector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the last capturedShadowCallRedirectionService.RedirectionResult
.void
placeCall
(Uri uri, PhoneAccountHandle phoneAccountHandle, boolean allowInteractiveResponse) Place a call to be processed by theCallRedirectionService
.protected void
protected void
redirectCall
(Uri handle, PhoneAccountHandle initialPhoneAccount, boolean isInteractiveResponseAllowed) static void
reset()
-
Field Details
-
callRedirectionServiceReflector
@ReflectorObject protected org.robolectric.shadows.ShadowCallRedirectionService.CallRedirectionServiceReflector callRedirectionServiceReflector
-
-
Constructor Details
-
ShadowCallRedirectionService
public ShadowCallRedirectionService()
-
-
Method Details
-
placeCall
public 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. -
getRedirectionResult
Returns the last capturedShadowCallRedirectionService.RedirectionResult
. -
reset
-
redirectCall
@Implementation protected void redirectCall(Uri handle, PhoneAccountHandle initialPhoneAccount, boolean isInteractiveResponseAllowed) -
placeCallUnmodified
-
cancelCall
-