SCCameraKitUserData

Objective-C


@interface SCCameraKitUserData : NSObject

Swift

class UserData : NSObject

Concrete user data class to pass in user data that can be used by some lenses

  • User’s full display name

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull displayName;

    Swift

    var displayName: String { get }
  • User’s birth date (optional)

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSDate *birthDate;

    Swift

    var birthDate: Date? { get }
  • Designated init to pass in user data fields

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDisplayName:(nonnull NSString *)displayName
                                      birthDate:(nullable NSDate *)birthDate;

    Swift

    init(displayName: String, birthDate: Date?)

    Parameters

    displayName

    user’s full display name

    birthDate

    user’s birth date (optional)

  • Unavailable

    Use designated init or convenience init to pass in required user properties

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;