SCCameraKitLensRemoteApiResponse

Swift

class LensRemoteApiResponse : NSObject, LensRemoteApiResponseProtocol

Concrete data class for the remote api service response to a request sent by a lens.

  • Designated init to pass in required properties for the response.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithRequest:(nonnull id<SCCameraKitLensRemoteApiRequest>)request
                 status:(SCCameraKitLensRemoteApiResponseStatus)status
               metadata:(nonnull NSDictionary<NSString *, NSString *> *)metadata
                   body:(nullable NSData *)body;

    Swift

    init(request: LensRemoteApiRequest, status: SCCameraKitLensRemoteApiResponseStatus, metadata: [String : String], body: Data?)

    Parameters

    request

    Remote api service request sent by a lens.

    status

    Status of the response.

    metadata

    A map of named metadata associated with the response.

    body

    Additional response payload as bytes.

  • Unavailable

    Use designated init to pass in required properties

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;