beginTimerForIF(delay: Integer; option: Integer; eventTag: Integer; theInterface: JadeInterface);
The beginTimerForIF method of the Object class is a variation of the beginTimer method.
The beginTimerForIF method arms a timer on the receiver and registers the receiver for a timer notification.
When the specified timer delay (or period) expires, the system calls the timerEvent method mapped to the interface that registered the notification, rather than to that of the subscriber.
The object registering the notification (that is, the subscriber) must be an instance of a
timerEvent(eventTag: Integer);
The parameters for the beginTimerForIF method are listed in the following table.
Parameter | Description |
---|---|
delay | Integer value (in milliseconds) for the timer delay |
option |
|
eventTag | User-specified literal or constant that can be used to identify a specific timer event |
theInterface | The interface implemented by the subscriber |
Use the getTimerStatusForIF method to return the status of the interface timer specified in the eventTag parameter.
The interface must have a defined timerEvent method and the receiver class must implement the corresponding method in the interface. (For details, see "