SCCameraKitLensRemoteApiService
Objective-C
@protocol SCCameraKitLensRemoteApiService <NSObject>
Swift
protocol LensRemoteApiService : NSObjectProtocol
Describes a remote api service used to process requests sent by a lens.
-
Process the remote api request sent by a lens. Returns a call associated with the request.
Declaration
Objective-C
- (nonnull id<SCCameraKitLensRemoteApiServiceCall>) processRequest:(nonnull id<SCCameraKitLensRemoteApiRequest>)request responseHandler: (nonnull void (^)(SCCameraKitLensRemoteApiServiceCallStatus, id<SCCameraKitLensRemoteApiResponse> _Nonnull)) responseHandler;
Swift
func processRequest(_ request: LensRemoteApiRequest, responseHandler: @escaping (LensRemoteApiServiceCallStatus, LensRemoteApiResponseProtocol) -> Void) -> LensRemoteApiServiceCall
Parameters
request
The remote api request sent by a lens.
responseHandler
Callback to send responses back to the lens who sent the remote api request.