Type Definitions

The following type definitions are available globally.

  • Block with void argument

    Declaration

    Objective-C

    typedef void (^VoidBlock)(void)

    Swift

    typealias VoidBlock = () -> Void
  • Handler block for captured buffer handler

    Declaration

    Objective-C

    typedef void (^CaptureSampleBufferHandler)(CMSampleBufferRef _Nullable)

    Swift

    typealias CaptureSampleBufferHandler = (Int32) -> Void
  • Handler block for captured layer handler

    Declaration

    Objective-C

    typedef void (^CaptureLayerHandler)(CALayer *_Nullable)

    Swift

    typealias CaptureLayerHandler = (UnsafeMutablePointer<Int32>?) -> Void
  • Handler block for captured image

    Declaration

    Objective-C

    typedef void (^CaptureCGImageHandler)(CGImageRef _Nullable, NSError *_Nullable)

    Swift

    typealias CaptureCGImageHandler = (Int32, (any Error)?) -> Void