org.robolectric.shadows.ShadowContentObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shadows-core-v18 Show documentation
Show all versions of shadows-core-v18 Show documentation
An alternative Android testing framework.
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