SCCameraKitStaticImageInput

Objective-C


@interface SCCameraKitStaticImageInput : NSObject <SCCameraKitInput>

Swift

class StaticImageInput : NSObject

StaticImageInput is a Camera Kit provided input that uses a single static image as a source for generating sample buffers.

  • Creates a StaticImageInput instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithImage:(nonnull UIImage *)image
                            frameDuration:(CMTime)frameDuration;

    Swift

    init(image: UIImage, frameDuration: CMTime)
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • The horizontal field of view for the input. Default is 70.0f.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat horizontalFieldOfView;

    Swift

    var horizontalFieldOfView: CGFloat { get set }