Skip to content

Commit 0cfbb8b

Browse files
committed
Block based retrieval of the current user location.
1 parent f0d2b1f commit 0cfbb8b

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

Framework/IngeoSDK.framework/Headers/IGLocationManager.h

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@
8585
*/
8686
+ (void)setCustomHTTPHeaders:(NSDictionary *)headers;
8787

88+
///---------------------------------------------------------------------------------------
89+
/// @name Location Monitoring Authorization
90+
///---------------------------------------------------------------------------------------
91+
92+
/**
93+
Asks the user for the specified type of location authorization and alert if denied or location
94+
services are off.
95+
Calling this method is only optional.
96+
*/
97+
+ (void)promptAuthorization:(CLAuthorizationStatus)type;
98+
8899

89100
///---------------------------------------------------------------------------------------
90101
/// @name Location Monitoring Activation and Deactivation
@@ -134,8 +145,17 @@
134145
/// @name Retrieve Location Data
135146
///---------------------------------------------------------------------------------------
136147

148+
typedef void (^IGQueryCompletionHandler)(IGLocation *igLocation, NSError *error);
149+
150+
/**
151+
Calls the completion handler once a valid location is determined.
152+
This method will invoke When-In-Use authorization prompt if needed and will run
153+
regardless of the current location monitoring status (started or stopped).
154+
*/
155+
+ (void)queryCurrentLocation:(IGQueryCompletionHandler)handler;
156+
137157
/**
138-
Returns a IGLocation object representing the latest location measurement taken by IngeoSDK.
158+
Returns a IGLocation object representing the latest valid location measurement taken by IngeoSDK.
139159
*/
140160
+ (IGLocation *)currentLocation;
141161

0 Bytes
Binary file not shown.

Framework/IngeoSDK.framework/IngeoSDK

30.8 KB
Binary file not shown.

IngeoSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Pod::Spec.new do |s|
33
s.name = "IngeoSDK"
4-
s.version = "1.3.6"
4+
s.version = "1.4.0"
55
s.summary = "Ingeo iOS SDK"
66
s.homepage = "http://ingeo.io"
77
s.license = 'Apache License, Version 2.0'

0 commit comments

Comments
 (0)