Handles requests related to location via IMS web services. This service fetches the last known location for the host application's user.
Required information
*Identity: In order to fetch user location, the application must have a valid user (represented by the Identity).
Concrete example
To fetch a user's last known location one can use following snippet
let service =LocationService(identity: identity)service.fetchLastKnownLocation(then: { result inguard!result.value.isEmptyelse {// errorreturn } completionHandler(.success(result.value))})
val service =LocationService(identity)service.fetchLastKnownLocation() { result: Result<Content?>? ->if (result?.value==null|| result.throwable !=null) {// failure } else {// Successval content = result.valuecompletionHandler(content) }})