MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocationService.h
Go to the documentation of this file.
1//
2// MPLocationService.h
3// MapsIndoors
4//
5// Created by Daniel Nielsen on 06/11/2018.
6// Copyright © 2018 MapsPeople A/S. All rights reserved.
7//
8
10#import <Foundation/Foundation.h>
11
12@class MPQuery;
13@class MPFilter;
14@class MPLocation;
15
16@protocol MPLocationServiceDelegate;
17
18NS_ASSUME_NONNULL_BEGIN
19
27 NSArray<MPLocation *> *_Nullable locations, NSError *_Nullable error);
28
35@interface MPLocationService : NSObject
36
37- (instancetype)init NS_UNAVAILABLE;
38
42+ (instancetype)sharedInstance;
43
48@property(nonatomic, weak, nullable) id<MPLocationServiceDelegate> delegate;
49
55@property(nonatomic, readonly) MPLocationSourceStatus locationSourceStatus;
56
64- (void)getLocationsUsingQuery:(MPQuery *)query
65 filter:(MPFilter *)filter
66 completionHandler:(nullable mpLocationsHandlerBlockType)handler;
67
76- (NSArray<MPLocation*>*)getLocationsByExternalIds:(NSArray<NSString*>*)externalIds;
77
78@end
79
80NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_BEGIN typedef void(^ mpLocationsHandlerBlockType)(NSArray< MPLocation * > *_Nullable locations, NSError *_Nullable error)
MPLocationSourceStatus
Definition MPLocationSourceStatus.h:12
Definition MPFilter.h:27
Definition MPLocation.h:38
Definition MPLocationService.h:36
instancetype sharedInstance()
id< MPLocationServiceDelegate > delegate
Definition MPLocationService.h:48
instancetype NS_UNAVAILABLE()
MPLocationSourceStatus locationSourceStatus
Definition MPLocationService.h:55
Definition MPQuery.h:18