SCCameraKitLensRepositorySpecificObserver
Objective-C
@protocol SCCameraKitLensRepositorySpecificObserver <NSObject>
Swift
protocol LensRepositorySpecificObserver : NSObjectProtocol
Allows conformers to be notified of changes to specific lenses in groups the repository has available.
-
Notifies that an observed specific lens in a group has changed.
Declaration
Objective-C
- (void)repository:(nonnull id<SCCameraKitLensRepository>)repository didUpdateLens:(nonnull id<SCCameraKitLens>)lens forGroupID:(nonnull NSString *)groupID;
Parameters
repository
the CameraKit lens repository responsible for the update.
lens
the newly updated lens object.
groupID
the updated group ID.
-
Notifies that an observed specific lens in a group has failed to be fetched.
Declaration
Objective-C
- (void)repository:(nonnull id<SCCameraKitLensRepository>)repository didFailToUpdateLensID:(nonnull NSString *)lensID forGroupID:(nonnull NSString *)groupID error:(nullable NSError *)error;
Parameters
repository
the CameraKit lens repository responsible for the update.
lensID
the lens ID that failed to update.
groupID
the group ID that failed to update.
error
a detailed error message of what went wrong, if available.