SCCameraKitLensRemoteApiServiceProvider

Objective-C

@protocol SCCameraKitLensRemoteApiServiceProvider <NSObject>

Swift

protocol LensRemoteApiServiceProvider : NSObjectProtocol

Describes an interface to provide remote api services for specific lenses and api spec identifiers.

  • The set of api spec identifiers that this provider supports.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSSet<NSString *> *_Nonnull supportedApiSpecIds;

    Swift

    var supportedApiSpecIds: Set<String> { get }
  • Returns the remote api service used for processing requests sent by the lens. Lifecycle of the remote api service will be tied to the lifecycle of the lens.

    Declaration

    Objective-C

    - (nonnull id<SCCameraKitLensRemoteApiService>)remoteApiServiceForLens:
        (nonnull id<SCCameraKitLens>)lens;

    Parameters

    lens

    The active lens whose requests the remote api service will be processing.