WaypointListDelegate
@objc
public protocol WaypointListDelegate : AnyObject
This protocol provides the methods which a WaypointList object
needs after user interactions to inform its delegate object.
-
Tells the delegate that a
WaypointEntryobject is added.Declaration
Swift
@objc optional func waypointList(_ list: WaypointList, didAdd entry: WaypointEntry, at index: Int)Parameters
listA
WaypointListobject informing the delegate about the action.entryThe
WaypointEntryobject added to list.indexThe index of the entry object.
-
Tells the delegate that a
WaypointEntryobject is selected.Declaration
Swift
@objc optional func waypointList(_ list: WaypointList, didSelect entry: WaypointEntry, at index: Int)Parameters
listA
WaypointListobject informing the delegate about the action.entryThe
WaypointEntryobject selected.indexThe index of the entry object.
-
Tells the delegate that a
WaypointEntryobject is removed.Declaration
Swift
@objc optional func waypointList(_ list: WaypointList, didRemove entry: WaypointEntry, at index: Int)Parameters
listA
WaypointListobject informing the delegate about the action.entryThe
WaypointEntryobject removed.indexThe index of the entry object.
-
Tells the delegate that two
WaypointEntryobjects are dragged.Declaration
Swift
@objc optional func waypointList(_ list: WaypointList, didDragFrom from: Int, to: Int)Parameters
listA
WaypointListobject informing the delegate about the action.fromThe previous index of the dragged
WaypointEntryobject.toThe new index of its destination position.
-
Tells the delegate that a
WaypointEntryobject is updated.Declaration
Swift
@objc optional func waypointList(_ list: WaypointList, didUpdate entry: WaypointEntry, at index: Int)Parameters
listA
WaypointListobject informing the delegate about the action.entryThe
WaypointEntryobject updated.indexThe index of the entry object.
View on GitHub
WaypointListDelegate Protocol Reference