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 classThe result of the redirection attempt. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.robolectric.shadows.ShadowCallRedirectionService.CallRedirectionServiceReflector -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
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
-