co-maps/iphone/Maps/Core/WebImage/IMWMWebImage.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
389 B
C
Raw Permalink Normal View History

2025-11-22 13:58:55 +01:00
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol IMWMImageTask <NSObject>
- (void)cancel;
@end
typedef void (^MWMWebImageCompletion)(UIImage * _Nullable image, NSError * _Nullable error);
@protocol IMWMWebImage
- (id<IMWMImageTask>)imageWithUrl:(NSURL *)url
completion:(MWMWebImageCompletion)completion;
- (void)cleanup;
@end
NS_ASSUME_NONNULL_END