AWFTimelineViewDelegate
Objective-C
@protocol AWFTimelineViewDelegate <NSObject>
Swift
protocol AWFTimelineViewDelegate : NSObjectProtocol
The AWFTimelineViewDelegate protocol defines a set of optional methods that you can use to receive messages related to updates or changes
to a timeline.
-
Tells the delegate that the timeline was scrubbed to the given
date.Declaration
Objective-C
- (void)timelineView:(AWFTimelineView *)timelineView didPanToDate:(NSDate *)date;Swift
optional func timelineView(_ timelineView: AWFTimelineView!, didPanTo date: Date!)Parameters
timelineViewThe timeline that was panned
dateThe date that the timeline was panned to
-
Tells the delegate that the timeline was changed to a different date.
Declaration
Objective-C
- (void)timelineView:(AWFTimelineView *)timelineView didSelectDate:(NSDate *)date;Swift
optional func timelineView(_ timelineView: AWFTimelineView!, didSelect date: Date!)Parameters
timelineViewThe timeline that changed
dateThe new date for the timeline’s current position
View on GitHub
AWFTimelineViewDelegate Protocol Reference