All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowContentObserver Maven / Gradle / Ivy

package org.robolectric.shadows;

import android.database.ContentObserver;
import android.net.Uri;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;

/**
 * Shadow for {@link android.database.ContentObserver}.
 */
@Implements(ContentObserver.class)
public class ShadowContentObserver {

  @RealObject
  private ContentObserver realObserver;

  @Implementation
  public void dispatchChange(boolean selfChange, Uri uri) {
    realObserver.onChange(selfChange, uri);
  }

  @Implementation
  public void dispatchChange(boolean selfChange) {
    realObserver.onChange(selfChange);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy