Class ShadowPhone

java.lang.Object
org.robolectric.shadows.ShadowPhone

@Implements(value=android.telecom.Phone.class, isInAndroidSdk=false) public class ShadowPhone extends Object
Shadow for Phone.
  • Constructor Details

    • ShadowPhone

      public ShadowPhone()
  • Method Details

    • 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().