summaryrefslogtreecommitdiff
path: root/platform/ios/uitest
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-02-12 16:37:21 -0500
committerGitHub <noreply@github.com>2018-02-12 16:37:21 -0500
commit9ee99c91bbf995302ead77a3f6fa22443f50a910 (patch)
tree1d23f40e4b327aa26606990cc217126db9bacc0e /platform/ios/uitest
parent560afaf1fb8f1cd20cef261da4992cd8a5478f88 (diff)
downloadqtlocation-mapboxgl-9ee99c91bbf995302ead77a3f6fa22443f50a910.tar.gz
[ios] Adds camera change delegate methods with reason parameter. (#11151)
Added missing notification handler for UIApplicationWillResignActiveNotification.
Diffstat (limited to 'platform/ios/uitest')
-rw-r--r--platform/ios/uitest/MapViewTests.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/ios/uitest/MapViewTests.m b/platform/ios/uitest/MapViewTests.m
index 4ed3d89399..ba15af918a 100644
--- a/platform/ios/uitest/MapViewTests.m
+++ b/platform/ios/uitest/MapViewTests.m
@@ -538,10 +538,13 @@
userInfo:@{ @"animated" : @(animated) }];
}
-- (void)mapView:(MGLMapView *)mapView regionDidChangeAnimated:(BOOL)animated {
+- (void)mapView:(MGLMapView *)mapView regionDidChangeWithReason:(MGLCameraChangeReason)reason animated:(BOOL)animated {
+
[[NSNotificationCenter defaultCenter] postNotificationName:@"regionDidChangeAnimated"
object:mapView
- userInfo:@{ @"animated" : @(animated) }];
+ userInfo:@{ @"animated" : @(animated),
+ @"reason" : @(reason)
+ }];
}
- (void)testDelegatesStartStopLocatingUser {