LocationServiceImpl
class LocationServiceImpl : LocationService
extension LocationServiceImpl: Mapper
Production implementation of LocationService
-
Handle dependency injection
Declaration
Swift
func inject(handler: LocationHandler)Parameters
handlerLocation handler
-
Current coordinate measured
Declaration
Swift
var current: CLLocationCoordinate2D? { get } -
Last coordinate measured
Declaration
Swift
var here: CLLocationCoordinate2D? { get } -
Last location contained in
Declaration
Swift
var inside: Location? { get } -
Last calculated distances
Declaration
Swift
var distances: Distances { get } -
Calculate nearest place of type
Declaration
Parameters
listChecklist
idPlace ID
coordinateCenter
Return Value
Nearest place if found
-
Insert a typed tracker in our listeners
Declaration
Swift
func insert<T>(tracker: T) where T : LocationTracker, T : HashableParameters
trackerNew listener
-
Remove a typed tracker from our listeners
Declaration
Swift
func remove<T>(tracker: T) where T : LocationTracker, T : HashableParameters
trackerFormer listener
-
Request permission
Declaration
Swift
func request(permission: LocationPermission)Parameters
permissionPermission
-
Start with intended permission
Declaration
Swift
func start(permission: LocationPermission)Parameters
permissionPermission
-
Calculate distances
Declaration
Swift
func calculateDistances()
-
Show Add Photo screen
Declaration
Swift
func add(photo mappable: Mappable)Parameters
mappablePlace
-
Show Add Post screen
Declaration
Swift
func add(post mappable: Mappable)Parameters
mappablePlace
-
Close callout
Declaration
Swift
func close(mappable: Mappable)Parameters
mappablePlace
-
Notify of visit
Declaration
Swift
func notify(mappable: Mappable, triggered: Date)Parameters
mappablePlace
triggeredDate
-
Reveal on map
Declaration
Swift
func reveal(mappable: Mappable, callout: Bool)Parameters
mappablePlace
calloutShow callout
-
Show Directions selector
Declaration
Swift
func show(directions mappable: Mappable)Parameters
mappablePlace
-
Show Show More screen
Declaration
Swift
func show(more mappable: Mappable)Parameters
mappablePlace
-
Show Nearby screen
Declaration
Swift
func show(nearby mappable: Mappable)Parameters
mappablePlace
-
Update
Declaration
Swift
func update(mappable: Mappable)Parameters
mappablePlace
View on GitHub
LocationServiceImpl Class Reference