Skip to content

Commit 0a788a8

Browse files
committed
Refactor NCPickListener methods
1 parent 16bcbcf commit 0a788a8

File tree

11 files changed

+36
-20
lines changed

11 files changed

+36
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
`navigine.framework` adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [2.0.6](https://github.com/Navigine/navigine_ios_framework/releases/tag/v.2.0.6) / 2022-01-27
6+
* Add convertest meters <-> screen
7+
* Refactor PickListener methods
8+
59
## [2.0.5](https://github.com/Navigine/navigine_ios_framework/releases/tag/v.2.0.5) / 2022-01-27
610
* Add venues renderring for all users
711

Frameworks/navigine.framework/Headers/NCBitmapRegionDecoder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
NAVIGINE_EXPORT
99
@interface NCBitmapRegionDecoder : NSObject
1010

11-
+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data
12-
length:(int32_t)length;
11+
+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data;
1312

1413
- (nullable UIImage *)decodeRegion:(nonnull NCRectangle *)rect
1514
sampleSize:(int32_t)sampleSize;

Frameworks/navigine.framework/Headers/NCLocationView.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
66
@class NCCircleMapObject;
77
@class NCIconMapObject;
88
@class NCPolylineMapObject;
9+
@class NCPoint;
910

1011
@protocol NCGestureRecognizerDelegate;
1112
@protocol NCPickListener;
@@ -31,9 +32,15 @@ NAVIGINE_EXPORT
3132

3233
- (void) requestRender;
3334

34-
- (void)pickMapObjectAt:(CGPoint)viewPosition;
35+
- (NCPoint*) screenPositionToMeters:(CGPoint)screenPosition;
3536

36-
- (void)pickMapFeatureAt:(CGPoint)viewPosition;
37+
- (CGPoint) metersToScreenPosition:(NCPoint *)meters clipToViewport:(BOOL)clip;
38+
39+
- (void) pickMapObjectAt:(CGPoint)viewPosition;
40+
41+
- (void) pickMapFeatureAt:(CGPoint)viewPosition;
42+
43+
- (void)loadConfig:(NSString *)config;
3744

3845
@property (assign, nonatomic) CGFloat minZoomFactor;
3946

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#import "NCExport.h"
2-
#import "NCPoint.h"
32
#import <Foundation/Foundation.h>
3+
#import <UIKit/UIKit.h>
44
@class NCMapObjectPickResult;
55

66

77
NAVIGINE_EXPORT
88
@protocol NCPickListener <NSObject>
99

1010
- (void)onMapObjectPickComplete:(nullable NCMapObjectPickResult *)mapObjectPickResult
11-
screenPosition:(nonnull NCPoint *)screenPosition;
11+
screenPosition:(CGPoint)screenPosition;
1212

1313
- (void)onMapFeaturePickComplete:(nonnull NSDictionary<NSString *, NSString *> *)mapFeaturePickResult
14-
screenPosition:(nonnull NCPoint *)screenPosition;
14+
screenPosition:(CGPoint)screenPosition;
1515

1616
@end
-4.13 MB
Binary file not shown.

Navigine.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'Navigine'
3-
spec.version = '2.0.5'
3+
spec.version = '2.0.6'
44
spec.license = { :type => 'Custom', :text => 'Navigine Licence'}
55
spec.summary = "iOS SDK for performing indoor navigation"
66
spec.platform = :ios, "11.0"
77
spec.homepage = 'https://github.com/Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0'
88
spec.authors = { 'Pavel Tychinin' => 'p.tychinin@navigine.com' }
9-
spec.source = { :git => 'https://github.com/Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0.git', :tag => 'v.2.0.5' }
9+
spec.source = { :git => 'https://github.com/Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0.git', :tag => 'v.2.0.6' }
1010
spec.documentation_url = 'https://github.com/Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0/wiki/Getting-Started'
1111
spec.vendored_frameworks = 'Frameworks/navigine.framework'
1212
# spec.vendored_libraries = 'Frameworks/navigine.framework/Navigine'

NavigineDemo/NavigineDemo/Frameworks/navigine.framework/Headers/NCBitmapRegionDecoder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
NAVIGINE_EXPORT
99
@interface NCBitmapRegionDecoder : NSObject
1010

11-
+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data
12-
length:(int32_t)length;
11+
+ (nullable NCBitmapRegionDecoder *)newInstance:(nonnull NSData *)data;
1312

1413
- (nullable UIImage *)decodeRegion:(nonnull NCRectangle *)rect
1514
sampleSize:(int32_t)sampleSize;

NavigineDemo/NavigineDemo/Frameworks/navigine.framework/Headers/NCLocationView.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
66
@class NCCircleMapObject;
77
@class NCIconMapObject;
88
@class NCPolylineMapObject;
9+
@class NCPoint;
910

1011
@protocol NCGestureRecognizerDelegate;
1112
@protocol NCPickListener;
@@ -31,9 +32,15 @@ NAVIGINE_EXPORT
3132

3233
- (void) requestRender;
3334

34-
- (void)pickMapObjectAt:(CGPoint)viewPosition;
35+
- (NCPoint*) screenPositionToMeters:(CGPoint)screenPosition;
3536

36-
- (void)pickMapFeatureAt:(CGPoint)viewPosition;
37+
- (CGPoint) metersToScreenPosition:(NCPoint *)meters clipToViewport:(BOOL)clip;
38+
39+
- (void) pickMapObjectAt:(CGPoint)viewPosition;
40+
41+
- (void) pickMapFeatureAt:(CGPoint)viewPosition;
42+
43+
- (void)loadConfig:(NSString *)config;
3744

3845
@property (assign, nonatomic) CGFloat minZoomFactor;
3946

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#import "NCExport.h"
2-
#import "NCPoint.h"
32
#import <Foundation/Foundation.h>
3+
#import <UIKit/UIKit.h>
44
@class NCMapObjectPickResult;
55

66

77
NAVIGINE_EXPORT
88
@protocol NCPickListener <NSObject>
99

1010
- (void)onMapObjectPickComplete:(nullable NCMapObjectPickResult *)mapObjectPickResult
11-
screenPosition:(nonnull NCPoint *)screenPosition;
11+
screenPosition:(CGPoint)screenPosition;
1212

1313
- (void)onMapFeaturePickComplete:(nonnull NSDictionary<NSString *, NSString *> *)mapFeaturePickResult
14-
screenPosition:(nonnull NCPoint *)screenPosition;
14+
screenPosition:(CGPoint)screenPosition;
1515

1616
@end
-1.97 MB
Binary file not shown.

0 commit comments

Comments
 (0)