Inherits from CCTimer : NSObject
Declared in CCScheduler.h

Tasks

Properties

key

unique identifier of the block

@property (nonatomic, readonly) NSString *key

Declared In

CCScheduler.h

target

owner of the timer

@property (nonatomic, readonly, assign) id target

Declared In

CCScheduler.h

Class Methods

timerWithTarget:interval:key:block:

Allocates a timer with a target, interval in seconds, a key and a block

+ (id)timerWithTarget:(id)owner interval:(ccTime)seconds key:(NSString *)key block:(void ( ^ ) ( ccTime delta ))block

Declared In

CCScheduler.h

Instance Methods

initWithTarget:interval:repeat:delay:key:block:

Initializes a timer with a target(owner), interval in seconds, repeat in number of times to repeat, delay in seconds and a block

- (id)initWithTarget:(id)owner interval:(ccTime)seconds repeat:(uint)r delay:(ccTime)d key:(NSString *)key block:(void ( ^ ) ( ccTime delta ))block

Declared In

CCScheduler.h