Instance Method

initWithDuration:

Creates a duration event with the specified time duration.

Declaration

- (instancetype)initWithDuration:(NSTimeInterval)duration;

Parameters

duration

The duration before the event ends, specified in seconds.

Return Value

An initialized duration event.