SCSDKSnapPhoto
Objective-C
@interface SCSDKSnapPhoto : NSObject <SCSDKCreativeKitModelValidating>
Swift
class SCSDKSnapPhoto : NSObject, SCSDKCreativeKitModelValidating
This class lets you initialize images that users can share to Snapchat
-
@property image @brief UIImage to be used as image for a Snap.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIImage *_Nullable image;Swift
var image: UIImage? { get } -
@property imageUrl @brief File URL to the file to be used as image for a Snap.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSURL *_Nullable imageUrl;Swift
var imageUrl: URL? { get } -
Initializes an SCSDKSnapPhoto instance.
Declaration
Objective-C
- (instancetype _Nonnull)initWithImage:(nonnull UIImage *)image;Swift
init(image: UIImage)Parameters
imageUIImage to be used as a Snap.
Return Value
An SCSDKSnapPhoto instance initialized with image.
-
Initializes an SCSDKSnapPhoto instance.
Declaration
Objective-C
- (instancetype _Nonnull)initWithImageUrl:(nonnull NSURL *)imageUrl;Swift
init(imageUrl: URL)Parameters
imageUrlNSURL of an image file on disk to be used as a Snap.
Return Value
An SCSDKSnapPhoto instance initialized with imageUrl.