# IMonitorFactory

`public interface IMonitorFactory`
``

android.support.test.jank.IMonitorFactory

An interface used to define a class that constructs `IMonitor`s for test methods. Implementing classes must have a public constructor that takes an `ERROR(/Instrumentation)` instance as the sole argument.

## Summary

### Public methods
`abstract List<IMonitor>` | `getMonitors(Method method, Object test)` Returns a list of `IMonitor`s that should be used to monitor the given test method.

## Public methods

### getMonitors

    List<IMonitor> getMonitors (Method method,
                    Object test)

Returns a list of `IMonitor`s that should be used to monitor the given test method.

Parameters
`method` | `Method`: The test method to monitor.
`test` | `Object`: An instance of the class to which `method` belongs.

Returns
`List<IMonitor>` | A list of `IMonitor`s that should be used to monitor the given test method.

- ## Annotations

  - GfxMonitor
  - JankTest

- ## Interfaces

  - IMonitor
  - IMonitorFactory

- ## Classes

  - JankTestBase