commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#if !TARGET_OS_TV |
|
10 |
|
|
11 |
#import <UIKit/UIKit.h> |
|
12 |
|
|
13 |
#import <FBSDKCoreKit/FBSDKCoreKit.h> |
|
14 |
|
|
15 |
NS_ASSUME_NONNULL_BEGIN |
|
16 |
|
|
17 |
/** |
|
18 |
* A container of textures for a camera effect. |
|
19 |
* A texture for a camera effect is an UIImages identified by a NSString key. |
|
20 |
*/ |
|
21 |
NS_SWIFT_NAME(CameraEffectTextures) |
|
22 |
@interface FBSDKCameraEffectTextures : NSObject <NSCopying, NSObject, NSSecureCoding> |
|
23 |
|
|
24 |
/** |
|
25 |
Sets the image for a texture key. |
|
26 |
@param image The UIImage for the texture |
|
27 |
@param key The key for the texture |
|
28 |
*/ |
|
29 |
|
|
30 |
// UNCRUSTIFY_FORMAT_OFF |
|
31 |
- (void)setImage:(nullable UIImage *)image forKey:(NSString *)key |
|
32 |
NS_SWIFT_NAME(set(_:forKey:)); |
|
33 |
// UNCRUSTIFY_FORMAT_ON |
|
34 |
|
|
35 |
/** |
|
36 |
Gets the image for a texture key. |
|
37 |
@param key The key for the texture |
|
38 |
@return The texture UIImage or nil |
|
39 |
*/ |
|
40 |
- (nullable UIImage *)imageForKey:(NSString *)key; |
|
41 |
|
|
42 |
@end |
|
43 |
|
|
44 |
NS_ASSUME_NONNULL_END |
|
45 |
|
|
46 |
#endif |