SCCameraKitLensHttpRequest

Objective-C


@interface SCCameraKitLensHttpRequest : NSObject

Swift

class LensHttpRequest : NSObject

Represents an HTTP request that originates within a lens.

  • id

    The unique id of the HTTP request.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull id;

    Swift

    var id: String { get }
  • The id of the lens that originated the request.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull lensId;

    Swift

    var lensId: String { get }
  • The URL request that represents the HTTP request.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSURLRequest *_Nonnull urlRequest;

    Swift

    var urlRequest: URLRequest { get }
  • Initializes the lens HTTP request with the given id, lens id and URL request.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithId:(nonnull NSString *)id
                                lensId:(nonnull NSString *)lensId
                            urlRequest:(nonnull NSURLRequest *)urlRequest;

    Swift

    init(id: String, lensId: String, urlRequest: URLRequest)
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (instancetype)new NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;