summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLCacheFileManager.h
blob: abdd957d1be71a85e2e426923e40fd5f311527d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  SDLCacheFileManager.h
//  SmartDeviceLink
//
//  Created by James Lapinski on 3/10/20.
//  Copyright © 2020 smartdevicelink. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SDLOnSystemRequest;

NS_ASSUME_NONNULL_BEGIN

typedef void (^ImageRetrievalCompletionHandler)(UIImage * _Nullable image, NSError * _Nullable error);

@interface SDLCacheFileManager : NSObject

/**
 * Handles a system request from the head unit to use a lock screen icon from a URL.
 *
 * @param request The system request from the head unit for the icon specified in its URL.
 * @param completion The handler called when the manager retrieves the icon or fails to do so with an error.
*/
- (void)retrieveImageForRequest:(SDLOnSystemRequest *)request withCompletionHandler:(ImageRetrievalCompletionHandler)completion;

@end

NS_ASSUME_NONNULL_END