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 forCallScreeningService
.
-
-
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
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
respondToCall
@Implementation(minSdk=24) protected final void respondToCall(Call.Details callDetails, CallScreeningService.CallResponse response)
-
getLastRespondToCallInput
public Optional<ShadowCallScreeningService.RespondToCallInput> getLastRespondToCallInput()
IfCallScreeningService
has calledrespondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse)
, returns the values of its parameters. Returns an empty optional otherwise.
-
-