MapsIndoors iOS SDK V3
|
#include <MPLocationService.h>
Instance Methods | |
(instancetype) | - NS_UNAVAILABLE |
(void) | - getLocationsUsingQuery:filter:completionHandler: |
(NSArray< MPLocation * > *) | - getLocationsByExternalIds: |
Class Methods | |
(instancetype) | + sharedInstance |
Properties | |
id< MPLocationServiceDelegate > | delegate |
MPLocationSourceStatus | locationSourceStatus |
The LocationService
acts as service for search and filtering in the full, aggregated collection of Locations. The service requests from all registered Location sources, both internal MapsIndoors and external. Get the shared instance through sharedInstance (MPLocationService)
.
- (NSArray< MPLocation * > *) getLocationsByExternalIds: | (NSArray< NSString * > *) | externalIds |
Get the Locations that have the provided external IDs associated. Multiple Locations may have the same external ID associated, so a request with e.g. two external IDs may return more than two Locations.
externalIds | The list of external IDs to get Locations for. |
- (void) getLocationsUsingQuery: | (MPQuery *) | query | |
filter: | (MPFilter *) | filter | |
completionHandler: | (nullable mpLocationsHandlerBlockType) | handler |
Get locations with given filter, query and callback handler block.
query | The query object |
filter | The filter object |
handler | The handler block |
- (instancetype) NS_UNAVAILABLE |
+ (instancetype) sharedInstance |
Get the shared instance.
|
readwritenonatomicweak |
Set a delegate to be informed about the status of loading the locations of the current solution.
|
readnonatomicassign |
The current status of the Location Source. The Location Service can not be used reliably until the status is MPLocationSourceStatusComplete.