CISTimerProtocol
@protocol CISTimerProtocol <NSObject>
Class conforming to this will be responsible for implementing required methods for initiating timers, this is used by the Conviva library access system timers.
-
Start a periodic timer. Will be called frequently.
Declaration
Objective-C
- (id)createTimer:(NSTimeInterval)intervalSeconds queue:(dispatch_queue_t)queue handler:(dispatch_block_t)handler;
Swift
func createTimer(_ intervalSeconds: TimeInterval, queue: DispatchQueue!, handler: (() -> Void)!) -> Any!
Parameters
intervalSeconds
The interval at which to run the function, in milliseconds.
queue
Queue on which timer action will be performed.
handler
The type of blocks submitted to dispatch queue.
Return Value
An instance of a class implementing CISTimerProtocol that can be used to cancel the timer.
-
Notification that Conviva no longer needs this TimerProtocol.
Declaration
Objective-C
- (void)cleanUp;
Swift
func cleanUp()