Package org.robolectric.shadows
Class ShadowPhone
- java.lang.Object
-
- org.robolectric.shadows.ShadowPhone
-
@Implements(value=android.telecom.Phone.class, isInAndroidSdk=false) public class ShadowPhone extends Object
Shadow forPhone.
-
-
Constructor Summary
Constructors Constructor Description ShadowPhone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCall(Call call)Add Call to a collection that returns when getCalls is called.protected CallAudioStategetCallAudioState()protected List<Call>getCalls()voidremoveCall(Call call)Remove call that has previously been added via addCall().
-
-
-
Method Detail
-
getCalls
@Implementation(minSdk=23) protected final List<Call> getCalls()
-
getCallAudioState
@Implementation(minSdk=23) protected final CallAudioState getCallAudioState()
-
addCall
public void addCall(Call call)
Add Call to a collection that returns when getCalls is called.
-
removeCall
public void removeCall(Call call)
Remove call that has previously been added via addCall().
-
-