GREYNSTimerIdlingResource
@interface GREYNSTimerIdlingResource : NSObject <GREYIdlingResource>
An idling resource to track NSTimer firing events so that the framework can synchronize with them.
-
@remark init is not an available initializer. Use the other initializers.
Declaration
Objective-C
- (instancetype)init;Swift
init!() -
Creates an idling resource that tracks the specified @c timer, causing actions to wait until the timer is fired or invalidated. If @c removeOnIdle is @c YES, the idling resource will automatically remove itself from the list of registered idling resources when it becomes idle.
Declaration
Objective-C
+ (instancetype)trackTimer:(NSTimer *)timer name:(NSString *)name removeOnIdle:(BOOL)removeOnIdle;Swift
class func trackTimer(_ timer: Any!, name: Any!, removeOnIdle: Any!) -> Self!Parameters
timerThe timer that will be tracked by the idling resource.
nameA descriptive name for the idling resource.
removeOnIdleDefines whether the resource should unregister itself when it becomes idle.
Return Value
A new and initialized GREYNSTimerIdlingResource instance.
View on GitHub
GREYNSTimerIdlingResource Class Reference