SCCameraKitUserDataProvider

Objective-C

@protocol SCCameraKitUserDataProvider <NSObject>

Swift

protocol UserDataProvider : NSObjectProtocol

Describes an interface that provides user data to lenses

  • Current user data

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) SCCameraKitUserData *userData;

    Swift

    var userData: UserData? { get }
  • Delegate to receive updates on user data changes

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<SCCameraKitUserDataProviderDelegate> delegate;

    Swift

    weak var delegate: UserDataProviderDelegate? { get set }