MapLongPressGestureDelegate
public protocol MapLongPressGestureDelegate : class
Long Press Gesture Delegate
-
Asks the delegate if the map should recognize this long press gesture and perform default functionality (which is nothing, currently).
Declaration
Swift
func mapController(_ controller: MZMapViewController, recognizer: UIGestureRecognizer, shouldRecognizeLongPressGesture location: CGPoint) -> BoolParameters
controllerThe MZMapViewController that wants to recognize the press.
recognizerThe recognizer that initially recognized the press.
locationThe screen coordinates that the press occured in relative to the bounds of the map.
Return Value
Return true for default functionality, or false if don’t want it recognized (or plan on handling it yourself).
-
Informs the delegate the map recognized a long press gesture.
Declaration
Swift
func mapController(_ controller: MZMapViewController, recognizer: UIGestureRecognizer, didRecognizeLongPressGesture location: CGPoint)Parameters
controllerThe MZMapViewController that recognized the press.
recognizerThe recognizer that recognized the press.
locationThe screen coordinates that the press occured in relative to the bounds of the map.
View on GitHub
MapLongPressGestureDelegate Protocol Reference