
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 framework Show documentation
Show all versions of framework Show documentation
An alternative Android testing framework.
The newest version!
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;
@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