Class ShadowConnection

java.lang.Object
org.robolectric.shadows.ShadowConnection

@Implements(value=android.telecom.Connection.class, minSdk=25) public class ShadowConnection extends Object
Shadow for Connection that represents a phone call or connection to a remote endpoint that carries voice and/or video traffic.
  • Constructor Details

    • ShadowConnection

      public ShadowConnection()
  • Method Details

    • sendConnectionEvent

      @Implementation protected void sendConnectionEvent(String event, Bundle extras)
      Records the event sent through sendConnectionEvent to be accessed later by tests.
    • getLastConnectionEvent

      public Optional<String> getLastConnectionEvent()