IdlingResourceRegistry
public final class IdlingResourceRegistry
extends Object
java.lang.Object |
↳ |
android.support.test.espresso.base.IdlingResourceRegistry |
跟踪用户注册的 IdlingResource
。
Summary
Inherited methods |
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
Public constructors
IdlingResourceRegistry
IdlingResourceRegistry (Looper looper)
Public methods
registerLooper
void registerLooper (Looper looper,
boolean considerWaitIdle)
Parameters |
looper |
Looper
|
considerWaitIdle |
boolean
|
registerResources
boolean registerResources (List<? extends IdlingResource> resourceList)
注册给定的资源。 如果任何给定资源已经注册,则会记录警告。
Parameters |
resourceList |
List
|
Returns |
boolean |
true if all resources were successfully registered |
unregisterResources
boolean unregisterResources (List<? extends IdlingResource> resourceList)
取消注册给定的资源。 如果任何给定资源尚未注册,则会记录警告。
Parameters |
resourceList |
List
|
Returns |
boolean |
true if all resources were successfully unregistered |