SCSDKLensSnapContent
Objective-C
@interface SCSDKLensSnapContent : NSObject <SCSDKSnapContent>
Swift
class SCSDKLensSnapContent : NSObject, SCSDKSnapContent
SCSDKLensSnapContent class is an implementation of the SCSDKSnapContent protocol. It provides a way to model a share into Snapchat with a Lens attachment. An attachment URL or a caption can be included, whereas stickers cannot
-
@property lensUUID @brief Lens UUID to use when sharing content to Snapchat client.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull lensUUID;Swift
var lensUUID: String { get } -
@deprecated @property lensID @brief Lens ID to use when sharing content to Snapchat client.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull lensID;Swift
var lensID: String { get } -
@property launchData @brief Lens launch data to use as lens attributes when sharing content to Snapchat client.
Declaration
Objective-C
@property (nonatomic, strong) SCSDKLensLaunchData *_Nullable launchData;Swift
var launchData: SCSDKLensLaunchData? { get set } -
Initialize SCSDKLensSnapContent with a Lens UUID
Declaration
Objective-C
- (nonnull instancetype)initWithLensUUID:(nonnull NSString *)lensUUID;Swift
init(lensUUID: String)Parameters
lensUUIDis a String representation of a UUID for the lens to open when sharing content to Snapchat client.
-
@deprecated - please use initWithLensUUID Initialize SCSDKLensSnapContent with a Lens ID
Declaration
Objective-C
- (nonnull instancetype)initWithLensID:(nonnull NSString *)lensID;Swift
init(lensID: String)Parameters
lensIDis the ID for the lens to use when sharing content to Snapchat client.