public class ViewVisibilityIdlingResource
extends java.lang.Object
implements android.support.test.espresso.IdlingResource
Constructor and Description |
---|
ViewVisibilityIdlingResource(android.app.Activity activity,
int viewId,
int visibility) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
boolean |
isIdleNow() |
void |
registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback resourceCallback) |
public ViewVisibilityIdlingResource(@NonNull android.app.Activity activity, @IdRes int viewId, int visibility)
activity
- which owns the ViewviewId
- ID of the View to monitorvisibility
- One of View.VISIBLE
, View.INVISIBLE
, or View.GONE
.public java.lang.String getName()
getName
in interface android.support.test.espresso.IdlingResource
public boolean isIdleNow()
isIdleNow
in interface android.support.test.espresso.IdlingResource
public void registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback resourceCallback)
registerIdleTransitionCallback
in interface android.support.test.espresso.IdlingResource