SCCameraKitLensRemoteApiResponse
Objective-C
@protocol SCCameraKitLensRemoteApiResponse <NSObject>
Swift
protocol LensRemoteApiResponseProtocol : NSObjectProtocol
Describes the remote api service response to a request sent by a lens.
-
Remote api service request sent by a lens.
Declaration
Objective-C
@property (nonatomic, strong, readonly) id<SCCameraKitLensRemoteApiRequest> _Nonnull request;
Swift
var request: LensRemoteApiRequest { get }
-
Status of the response.
Declaration
Objective-C
@property (nonatomic, readonly) SCCameraKitLensRemoteApiResponseStatus status;
Swift
var status: SCCameraKitLensRemoteApiResponseStatus { get }
-
A map of named metadata associated with the response.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSDictionary<NSString *, NSString *> *_Nonnull metadata;
Swift
var metadata: [String : String] { get }
-
Additional response payload as bytes.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSData *body;
Swift
var body: Data? { get }