Class ShadowCallLogCalls

java.lang.Object
org.robolectric.shadows.ShadowCallLogCalls

@Implements(android.provider.CallLog.Calls.class) public class ShadowCallLogCalls extends Object
Shadow for the system's CallLog.Call class that allows tests to configure the most recent call.
  • Constructor Details

    • ShadowCallLogCalls

      public ShadowCallLogCalls()
  • Method Details

    • getLastOutgoingCall

      @Implementation protected static String getLastOutgoingCall(Context context)
      Gets the last outgoing call String set by setLastOutgoingCall(String).
      Parameters:
      context - A Context object not used
      Returns:
      The last outgoing call set by setLastOutgoingCall(String)
    • setLastOutgoingCall

      public static void setLastOutgoingCall(String lastCall)
      Sets a last outgoing call that can later be retrieved by getLastOutgoingCall(Context).
      Parameters:
      lastCall - The last outgoing call String.
    • reset

      @Resetter public static void reset()