diff options
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/src/MGLMapView.mm | 10 | ||||
-rw-r--r-- | platform/macos/src/MGLMapViewDelegate.h | 2 | ||||
-rw-r--r-- | platform/macos/test/MGLMapViewDelegateIntegrationTests.swift | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm index eb877216d2..1ba2483d52 100644 --- a/platform/macos/src/MGLMapView.mm +++ b/platform/macos/src/MGLMapView.mm @@ -934,13 +934,13 @@ public: } } -- (void)mapViewDidEnterIdle { +- (void)mapViewDidBecomeIdle { if (!_mbglMap) { return; } - if ([self.delegate respondsToSelector:@selector(mapViewDidEnterIdle)]) { - [self.delegate mapViewDidEnterIdle:self]; + if ([self.delegate respondsToSelector:@selector(mapViewDidBecomeIdle)]) { + [self.delegate mapViewDidBecomeIdle:self]; } } @@ -3061,8 +3061,8 @@ public: [nativeView mapViewDidFinishRenderingMapFullyRendered:fullyRendered]; } - void onDidEnterIdle() override { - [nativeView mapViewDidEnterIdle]; + void onDidBecomeIdle() override { + [nativeView mapViewDidBecomeIdle]; } void onDidFinishLoadingStyle() override { diff --git a/platform/macos/src/MGLMapViewDelegate.h b/platform/macos/src/MGLMapViewDelegate.h index ad59f5bd39..c7d6786666 100644 --- a/platform/macos/src/MGLMapViewDelegate.h +++ b/platform/macos/src/MGLMapViewDelegate.h @@ -162,7 +162,7 @@ NS_ASSUME_NONNULL_BEGIN @param mapView The map view that has just entered the idle state. */ -- (void)mapViewDidEnterIdle:(MGLMapView *)mapView; +- (void)mapViewDidBecomeIdle:(MGLMapView *)mapView; /** Tells the delegate that the map has just finished loading a style. diff --git a/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift b/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift index 109c279a09..83c7160fde 100644 --- a/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift +++ b/platform/macos/test/MGLMapViewDelegateIntegrationTests.swift @@ -25,7 +25,7 @@ extension MGLMapViewDelegateIntegrationTests: MGLMapViewDelegate { func mapViewDidFinishRenderingMap(_ mapView: MGLMapView, fullyRendered: Bool) {} - func mapViewDidEnterIdle(_ mapView: MGLMapView) {} + func mapViewDidBecomeIdle(_ mapView: MGLMapView) {} func mapViewDidFailLoadingMap(_ mapView: MGLMapView, withError error: Error) {} |