SCCameraKitLensLaunchDataBuilder
Objective-C
@interface SCCameraKitLensLaunchDataBuilder : NSObject
Swift
class LensLaunchDataBuilder : NSObject
Concrete class to build lens launch data to pass to processor when applying
-
Builds and get launch data from current builder state
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) id<SCCameraKitLensLaunchData> launchData;
Swift
var launchData: LensLaunchData? { get }
-
Add number key-value pair to launch data
Declaration
Objective-C
- (void)addNumber:(nonnull NSNumber *)value forKey:(nonnull NSString *)key;
Swift
func add(number value: NSNumber, key: String)
Parameters
value
number value
key
key for value
-
Add number array key-value pair to launch data
Declaration
Objective-C
- (void)addNumberArray:(nonnull NSArray<NSNumber *> *)value forKey:(nonnull NSString *)key;
Swift
func add(numberArray value: [NSNumber], key: String)
Parameters
value
number array value
key
key for value
-
Add string key-value pair to launch data
Declaration
Objective-C
- (void)addString:(nonnull NSString *)value forKey:(nonnull NSString *)key;
Swift
func add(string value: String, key: String)
Parameters
value
string value
key
key for value
-
Add string array key-value pair to launch data
Declaration
Objective-C
- (void)addStringArray:(nonnull NSArray<NSString *> *)value forKey:(nonnull NSString *)key;
Swift
func add(stringArray value: [String], key: String)
Parameters
value
string array value
key
key for value
-
Removes key-value pair from launch data
Declaration
Objective-C
- (void)removeValueForKey:(nonnull NSString *)key;
Swift
func removeValue(key: String)
Parameters
key
key for value to remove