public final class IntentStubberRegistry
extends Object
java.lang.Object | |
↳ | android.support.test.runner.intent.IntentStubberRegistry |
公开 IntentStubber
的实现。
Public methods |
|
---|---|
static IntentStubber |
getInstance() 返回加载的Intent Stubber mInstance。 |
static boolean |
isLoaded() |
static void |
load(IntentStubber intentStubber) 将 |
static void |
reset() 清除当前的Intent Stubber实例。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
IntentStubber getInstance ()
返回加载的Intent Stubber mInstance。
Returns | |
---|---|
IntentStubber |
Throws | |
---|---|
IllegalStateException |
if this method is not called on the main thread. |
IllegalStateException |
if no Intent Stubber has been loaded. |
void load (IntentStubber intentStubber)
将IntentStubber
加载到此注册表中。 一次只能有一个活动的吸尘器。
在相同的仪器中多次调用此方法将导致异常。
这个方法可以从任何线程调用。
Parameters | |
---|---|
intentStubber |
IntentStubber
|
void reset ()
清除当前的Intent Stubber实例。