SCCameraKitLensRemoteApiRequest

Objective-C

@protocol SCCameraKitLensRemoteApiRequest <NSObject>

Swift

protocol LensRemoteApiRequest : NSObjectProtocol

Describes the remote api service request sent by a lens.

  • Unique id of the request.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull requestId;

    Swift

    var requestId: String { get }
  • Unique id of the remote API service specification.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull apiSpecId;

    Swift

    var apiSpecId: String { get }
  • Unique id of the remote API service endpoint requested by this request.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull endpointId;

    Swift

    var endpointId: String { get }
  • A map of named parameters associated with the request.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSDictionary<NSString *, NSString *> *_Nonnull parameters;

    Swift

    var parameters: [String : String] { get }
  • Additional request payload as bytes.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSData *_Nonnull body;

    Swift

    var body: Data { get }