GREYIdlingResource
@protocol GREYIdlingResource <NSObject>
A protocol for resources that can potentially modify the UI and should be synchronized with before performing any interaction or verification with UI element.
-
A method to query idleness of this resource.
Note: This method is called on the main thread and polled continuously until this resource goes into idle state or a test timeout occurs. It is discouraged to perform any heavy tasks in this method.
Declaration
Objective-C
- (BOOL)isIdleNow;
Swift
func isIdleNow() -> Bool
Return Value
@c YES if the resource is currently idle; @c NO otherwise.
-
Declaration
Objective-C
- (NSString *)idlingResourceName;
Swift
func idlingResourceName() -> String!
Return Value
A user friendly name that will be printed if this resource fails to idle leading to a test timeout.
-
Declaration
Objective-C
- (NSString *)idlingResourceDescription;
Swift
func idlingResourceDescription() -> String!
Return Value
Information that will be printed alongside the name if this resource fails to idle in the given timeout.