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

    timelineView

    The timeline that was panned

    date

    The 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

    timelineView

    The timeline that changed

    date

    The new date for the timeline’s current position