SCSDKPhotoSnapContent
Objective-C
@interface SCSDKPhotoSnapContent : NSObject <SCSDKSnapContent>
Swift
class SCSDKPhotoSnapContent : NSObject, SCSDKSnapContent
SCSDKPhotoSnapContent is an implementation of the SCSDKSnapContent protocol. It provides a way to model a photo Snap for sharing to Snapchat
-
@property snapPhoto @brief SCSDKSnapPhoto instance containing image data required for creating a still Snap.
Declaration
Objective-C
@property (nonatomic, strong, readonly) SCSDKSnapPhoto *_Nonnull snapPhoto;
Swift
var snapPhoto: SCSDKSnapPhoto { get }
-
Initializes an SCSDKPhotoSnapContent instance.
Declaration
Objective-C
- (nonnull instancetype)initWithSnapPhoto:(nonnull SCSDKSnapPhoto *)snapPhoto;
Swift
init(snapPhoto: SCSDKSnapPhoto)
Parameters
snapPhoto
SCSDKSnapPhoto instance containing image data to be used as a Snap.
Return Value
An SCSDKPhotoSnapContent instance initialized with snapPhoto.