MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPPositionProvider.h
Go to the documentation of this file.
1//
2// MPPositionProvider.h
3// MapsIndoors
4//
5// Created by Daniel Nielsen on 10/03/14.
6// Copyright (c) 2014 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "MPPositionResult.h"
11
19
23@protocol MPPositionProviderDelegate <NSObject>
24
25@required
26
32- (void)onPositionUpdate:(nonnull MPPositionResult*)positionResult;
33
39- (void)onPositionFailed:(nonnull id)provider;
40@end
41
42
46@protocol MPPositionProvider <NSObject>
47
51@property (nonatomic) BOOL preferAlwaysLocationPermission;
52
56@property (nonatomic, readonly) BOOL locationServicesActive; // enabled AND authorized
57
61- (void) requestLocationPermissions;
62
66- (void) updateLocationPermissionStatus;
67
73- (void)startPositioning:(nullable NSString*)arg;
79- (void)stopPositioning:(nullable NSString*)arg;
86- (void)startPositioningAfter:(int)millis arg:(nullable NSString*)arg;
87
93- (BOOL)isRunning;
94
98@property (nonatomic, weak, nullable) id<MPPositionProviderDelegate> delegate;
99
103@property (nonatomic, strong, nullable) MPPositionResult* latestPositionResult;
104
108@property (nonatomic) MPPositionProviderType providerType;
109
110@end
111
MPPositionProviderType
Definition MPPositionProvider.h:12
@ COMBINED_POSITION_PROVIDER
Definition MPPositionProvider.h:15
@ SENSOR_BASED_POSITION_PROVIDER
Definition MPPositionProvider.h:17
@ MOBILE_NETWORK_POSITION_PROVIDER
Definition MPPositionProvider.h:14
@ WIFI_POSITION_PROVIDER
Definition MPPositionProvider.h:16
@ GPS_POSITION_PROVIDER
Definition MPPositionProvider.h:13
Definition MPPositionResult.h:18