register Idle Transition Callback
Registers the given ResourceCallback with the resource. Espresso will call this method:
- with its implementation of ResourceCallback so it can be notified asynchronously that your resource is idle
- from the main thread, but you are free to execute the callback's onTransitionToIdle from any thread
- once (when it is initially given a reference to your IdlingResource)
You only need to call this upon transition from busy to idle - if the resource is already idle when the method is called invoking the call back is optional and has no significant impact.
Parameters
callback