SCCameraKitLensHttpHandler
Objective-C
@protocol SCCameraKitLensHttpHandler <NSObject>
Swift
protocol LensHttpHandler : NSObjectProtocol
Provides ability to handle HTTP requests that originate within lenses.
-
Performs tjhe given HTTP request and calls the completion block when the request is complete.
Declaration
Objective-C
- (void)performRequest:(nonnull SCCameraKitLensHttpRequest *)lensHttpRequest completion:(nonnull void (^)(NSData *_Nullable, NSURLResponse *_Nullable, NSError *_Nullable))completion;
Swift
func perform(_ lensHttpRequest: LensHttpRequest) async throws -> (Data, URLResponse)