From c24d67b38c1846f32069b68123bac100473504fe Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Mon, 1 Jul 2019 15:59:22 -0700 Subject: [ios, macos] Update shouldRemoveStyle method documentation. --- platform/ios/src/MGLMapViewDelegate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'platform/ios') diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h index f41476a34b..3ddb7b007f 100644 --- a/platform/ios/src/MGLMapViewDelegate.h +++ b/platform/ios/src/MGLMapViewDelegate.h @@ -281,10 +281,13 @@ NS_ASSUME_NONNULL_BEGIN Asks the delegate whether the map view should evict cached images. This method is called in two scenarios: when the cumulative size of unused images - goes over the cache size or when the image's requesting tile is destroyed. + exceeds the cache size or when the last tile that includes the image is removed from + memory. @param mapView The map view that is evicting the image. @param imageName The image name that is going to be removed. + @return A Boolean value indicating whether the map view should evict + the cached image. */ - (BOOL)mapView:(MGLMapView *)mapView shouldRemoveStyleImage:(NSString *)imageName; -- cgit v1.2.1