@Implements(android.telecom.CallScreeningService.class) public final class ShadowCallScreeningService extends Object
CallScreeningService.| Modifier and Type | Class | Description |
|---|---|---|
static class |
ShadowCallScreeningService.RespondToCallInput |
Contains the parameters used to call
CallScreeningService.respondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse). |
| Constructor | Description |
|---|---|
ShadowCallScreeningService() |
| Modifier and Type | Method | Description |
|---|---|---|
Optional<ShadowCallScreeningService.RespondToCallInput> |
getLastRespondToCallInput() |
If
CallScreeningService has called respondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse), returns the values of its
parameters. |
protected void |
respondToCall(Call.Details callDetails,
CallScreeningService.CallResponse response) |
@Implementation(minSdk=24) protected final void respondToCall(Call.Details callDetails, CallScreeningService.CallResponse response)
public Optional<ShadowCallScreeningService.RespondToCallInput> getLastRespondToCallInput()
CallScreeningService has called respondToCall(android.telecom.Call.Details, android.telecom.CallScreeningService.CallResponse), returns the values of its
parameters. Returns an empty optional otherwise.