15 lines
435 B
Swift
15 lines
435 B
Swift
@objc(MWMRouteManagerViewModelProtocol)
|
|
protocol RouteManagerViewModelProtocol: AnyObject {
|
|
var routePoints: [MWMRoutePoint] { get }
|
|
|
|
var refreshControlsCallback: (() -> Void)! { get set }
|
|
var reloadCallback: (() -> Void)! { get set }
|
|
|
|
func startTransaction()
|
|
func finishTransaction()
|
|
func cancelTransaction()
|
|
|
|
func addLocationPoint()
|
|
func movePoint(at index: Int, to newIndex: Int)
|
|
func deletePoint(at index: Int)
|
|
}
|