Package org.robolectric.shadows
Class ShadowCall
- java.lang.Object
-
- org.robolectric.shadows.ShadowCall
-
@Implements(value=android.telecom.Call.class, minSdk=21) public class ShadowCall extends Object
Robolectric test forCall
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowCall.ShadowRttCall
Robolectric test forCall.RttCall
.
-
Constructor Summary
Constructors Constructor Description ShadowCall()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearHasSentRttRequest()
"Forgets" that sendRttRequest() was called.String
getId()
boolean
hasRespondedToRttRequest()
Determines whether respondToRttRequest() was called.boolean
hasSentRttRequest()
Determines whether sendRttRequest() was called.protected void
respondToRttRequest(int id, boolean accept)
protected void
sendRttRequest()
-
-
-
Method Detail
-
sendRttRequest
@Implementation(minSdk=28) protected void sendRttRequest()
-
hasSentRttRequest
public boolean hasSentRttRequest()
Determines whether sendRttRequest() was called.- Returns:
- true if sendRttRequest() was called, false otherwise.
-
clearHasSentRttRequest
public void clearHasSentRttRequest()
"Forgets" that sendRttRequest() was called.
-
respondToRttRequest
@Implementation(minSdk=28) protected void respondToRttRequest(int id, boolean accept)
-
hasRespondedToRttRequest
public boolean hasRespondedToRttRequest()
Determines whether respondToRttRequest() was called.- Returns:
- True if respondToRttRequest() was called, false otherwise.
-
getId
public String getId()
-
-