MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocationsProvider.h
Go to the documentation of this file.
1//
2// MPLocationsProvider.h
3// MapsIndoors SDK for iOS
4//
5// Created by Daniel Nielsen on 1/14/14.
6// Copyright (c) 2014 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
12@class MPLocationQuery;
13@class MPLocation;
14
15typedef void(^mpLocationDetailsHandlerBlockType)(MPLocation* _Nullable location, NSError* _Nullable error);
16typedef void(^mpLocationListHandlerBlockType)(MPLocationDataset* _Nullable locationData, NSError* _Nullable error);
17
21@protocol MPLocationsProviderDelegate <NSObject>
26@required
27- (void) onLocationsReady: (nonnull MPLocationDataset*)locationData;
32@required
33- (void) onLocationDetailsReady: (nonnull MPLocation*)location;
34@end
35
36
40@protocol MPLocationsProvider <NSObject>
41
42@property (nonatomic, weak, nullable) id <MPLocationsProviderDelegate> delegate;
43
50- (void) getLocationsAsync: (nonnull NSString*) solutionId language: (nonnull NSString*) language DEPRECATED_MSG_ATTRIBUTE("Use getLocations instead");
51
55- (void) getLocations;
56
64- (void) getLocationsAsync: (nonnull NSString*) solutionId language: (nonnull NSString*) language completionHandler: (nullable mpLocationListHandlerBlockType) handler DEPRECATED_MSG_ATTRIBUTE("Use getLocationsWithCompletion instead");
65
70- (void) getLocationsWithCompletion: (nullable mpLocationListHandlerBlockType) handler;
71
79- (void) getLocationDetailsAsync: (nonnull NSString*) solutionId withId:(nonnull NSString*)locationId language: (nonnull NSString*) language DEPRECATED_MSG_ATTRIBUTE("Use getLocationWithId: instead");
80
86- (void) getLocationWithId:(nonnull NSString*)locationId;
87
96- (void) getLocationDetailsAsync:(nonnull NSString*) solutionId withId:(nonnull NSString*)locationId language: (nonnull NSString*) language completionHandler: (nullable mpLocationDetailsHandlerBlockType) handler DEPRECATED_MSG_ATTRIBUTE("Use getLocationWithId:completionHandler: instead");
97
104- (void) getLocationWithId:(nonnull NSString*)locationId completionHandler:(nullable mpLocationDetailsHandlerBlockType) completionHandler;
105
113- (void) getLocationsWithIds:(nonnull NSArray<NSString*>*)locationIds completionHandler:(nonnull mpLocationListHandlerBlockType)completionHandler;
114
121- (void) getLocationsUsingQueryAsync:(nonnull MPLocationQuery*) locationQuery language:(nonnull NSString*) language DEPRECATED_MSG_ATTRIBUTE("Use getLocationsUsingQuery: instead");
122
130+ (BOOL) isOfflineDataAvailableForSolutionId:(nonnull NSString*)solutionId language:(nonnull NSString*)language;
131
137- (void) getLocationsUsingQuery:(nonnull MPLocationQuery*) locationQuery;
138
146- (void) getLocationsUsingQueryAsync:(nonnull MPLocationQuery*) locationQuery language:(nonnull NSString*) language completionHandler:(nullable mpLocationListHandlerBlockType) handler DEPRECATED_MSG_ATTRIBUTE("Use getLocationsUsingQuery:completionHandler: instead");
147
154- (void) getLocationsUsingQuery:(nonnull MPLocationQuery*)locationQuery completionHandler:(nullable mpLocationListHandlerBlockType)handler;
155
156@end
157
158
162DEPRECATED_MSG_ATTRIBUTE("Use MPLocationService instead.")
164
165@end
void(^ mpLocationDetailsHandlerBlockType)(MPLocation *_Nullable location, NSError *_Nullable error)
Definition MPLocationsProvider.h:15
void(^ mpLocationListHandlerBlockType)(MPLocationDataset *_Nullable locationData, NSError *_Nullable error)
Definition MPLocationsProvider.h:16
Definition MPLocationDataset.h:24
Definition MPLocation.h:38
Definition MPLocationQuery.h:28
Definition MPLocationsProvider.h:163
Definition MPLocationsProvider.h:40
id< MPLocationsProviderDelegate > delegate
Definition MPLocationsProvider.h:42