Package org.robolectric.shadows
Class ShadowCallScreeningService
java.lang.Object
org.robolectric.shadows.ShadowCallScreeningService
@Implements(android.telecom.CallScreeningService.class) public final class ShadowCallScreeningService extends Object
Shadow for
CallScreeningService
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowCallScreeningService.RespondToCallInput
Contains the parameters used to callCallScreeningService.respondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse)
. -
Constructor Summary
Constructors Constructor Description ShadowCallScreeningService()
-
Method Summary
Modifier and Type Method Description Optional<ShadowCallScreeningService.RespondToCallInput>
getLastRespondToCallInput()
IfCallScreeningService
has calledrespondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse)
, returns the values of its parameters.protected void
respondToCall(Call.Details callDetails, CallScreeningService.CallResponse response)
-
Constructor Details
-
ShadowCallScreeningService
public ShadowCallScreeningService()
-
-
Method Details
-
respondToCall
@Implementation(minSdk=24) protected final void respondToCall(Call.Details callDetails, CallScreeningService.CallResponse response) -
getLastRespondToCallInput
IfCallScreeningService
has calledrespondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse)
, returns the values of its parameters. Returns an empty optional otherwise.
-