CameraActions
public protocol CameraActions
A protocol that defines camera actions.
-
Returns visible region of the map.
Declaration
Swift
var visibleRegion: VisibleRegion { get } -
Returns current camera properties.
Declaration
Swift
var cameraProperties: CameraProperties { get } -
Returns the camera tracking mode in the
Map.Declaration
Swift
var cameraTrackingMode: CameraTrackingMode { get set } -
Updates the camera using an animation over the given duration.
Declaration
Swift
func applyCamera(_ update: CameraUpdate, animationDuration: TimeInterval, completion: ((Bool) -> ())?)Parameters
updateThe camera options that will be applied.
animationDurationThe animation duration.
completionThe completion that will be executed when the animation ends or is interrupted.
-
Moves the camera without animation.
Declaration
Swift
func moveCamera(_ update: CameraUpdate)Parameters
updateThe camera update that will be applied.
-
Stops camera update that is in progress.
Declaration
Swift
func stopAnimation()
-
applyCamera(_:Extension methodcompletion: ) Updates the camera using an animation over a one-second duration.
Declaration
Swift
public func applyCamera(_ update: CameraUpdate, completion: ((Bool) -> ())?)Parameters
updateThe camera update that will be applied.
completionThe completion that will be executed when the animation ends or is interrupted.
-
applyCamera(_:Extension methodanimationDuration: ) Updates the camera using an animation over the given duration.
Declaration
Swift
public func applyCamera(_ update: CameraUpdate, animationDuration: TimeInterval)Parameters
updateThe camera update that will be applied.
animationDurationThe animation duration.
-
applyCamera(_:Extension method) Updates the camera using an animation over a one-second duration.
Declaration
Swift
public func applyCamera(_ update: CameraUpdate)Parameters
updateThe camera update that will be applied.
TomTom SDK for iOS (0.53.1)
CameraActions