Sha256: 9f1abd0adf6a6da37fb17207b7633e5c8a55da79c234e87d392052e878d04eb9

Contents?: true

Size: 1011 Bytes

Versions: 1

Compression:

Stored size: 1011 Bytes

Contents

#import <Foundation/Foundation.h>

#import "api_generator/iphone/IMethodResult.h"


// hash keys used in properties and parameters


@protocol ITimer <NSObject>


/* Start timer with preset interval. Callback fired only one time. */
-(void) start:(int)interval methodResult:(id<IMethodResult>)methodResult;

/* Stop started timer */
-(void) stop:(id<IMethodResult>)methodResult;

-(void) isAlive:(id<IMethodResult>)methodResult;


// NOTE: if you want to hold methodResult(for example periodically call callbacks) you should release it manually when you stop using it!
@end


@protocol ITimerSingleton <NSObject>




/* Create a timers objects. */
-(void) create:(id<IMethodResult>)methodResult;


@end


@protocol ITimerFactory <NSObject>
-(id<ITimerSingleton>) getTimerSingleton;
-(id<ITimer>) getTimerByID:(NSString*)ID;
-(void) destroyObjectByID:(NSString*)ID;
-(NSArray*) enumerateTimerInstances;
@end


@interface TimerFactorySingleton : NSObject {
}
+(id<ITimerFactory>) getTimerFactoryInstance;
@end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tauplatform-1.0.1 lib/commonAPI/coreapi/ext/platform/iphone/generated/ITimer.h