| android.support.test.runner.intercepting.InterceptingActivityFactory |
Known Indirect Subclasses
DefaultInterceptingActivityFactory,
SingleActivityFactory<T extends Activity>
|
Implement this interface to provide custom implementation of Activity under test. It is used by
newActivity(ClassLoader, String, Intent) to create instance of
the activity under test. Please see
interceptActivityUsing(InterceptingActivityFactory)
for more details.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method can be used to provide activity instance while intercepting activity creation
for a particular activity in response to a given intent.
| |||||||||||
This method can be used to know whether activity instance creation should be intercepted or
not for a particular activity in response to a given intent.
| |||||||||||
This method can be used to provide activity instance while intercepting activity creation for a particular activity in response to a given intent.
| classLoader | The ClassLoader with which to instantiate the object |
|---|---|
| className | The name of the class implementing the Activity object |
| intent | The Intent object that specified the activity class being instantiated. |
This method can be used to know whether activity instance creation should be intercepted or not for a particular activity in response to a given intent.
| classLoader | The ClassLoader with which to instantiate the object |
|---|---|
| className | The name of the class implementing the Activity object |
| intent | The Intent object that specified the activity class being instantiated. |