CurrentLocationButtonViewModel
public class CurrentLocationButtonViewModel
Provides control over current location button, use it to manage visibility and the icon of it.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Defines visibility behavior of the
See moreCurrentLocationButton.Declaration
Swift
public enum VisibilityPolicy -
Defines the visibility policy of the current location button.
Declaration
Swift
public var visibilityPolicy: VisibilityPolicy { get set } -
The custom icon for the button. If this property is not set, default icons are used.
Declaration
Swift
public var icon: UIImage? { get set } -
Whether the current location button in visible at the moment.
Declaration
Swift
public var isVisible: Bool { get }
TomTom SDK for iOS (0.41.0)
CurrentLocationButtonViewModel