Type-Definitions

The following type definitions are available globally.

  • A block containing an array of barcodes or nil if there’s an error.

    Declaration

    Swift

    typealias VisionBarcodeDetectionCallback = ([FIRVisionBarcode]?, Error?) -> Void

    Parameters

    barcodes

    Array of barcodes detected in the image or nil if there was an error.

    error

    The error or nil.

  • A block containing an array of labels or nil if there’s an error.

    Declaration

    Swift

    typealias VisionCloudLabelDetectionCompletion = ([FIRVisionCloudLabel]?, Error?) -> Void

    Parameters

    labels

    Array of labels detected in the image or nil if there was an error.

    error

    The error or nil.

  • A block containing an array of landmark or nil if there’s an error.

    Declaration

    Swift

    typealias VisionCloudLandmarkDetectionCompletion = ([FIRVisionCloudLandmark]?, Error?) -> Void

    Parameters

    landmarks

    Array of landmark detected in the image or nil if there was an error.

    error

    The error or nil.

  • A block containing a text detection or error.

    Declaration

    Swift

    typealias VisionCloudTextDetectionCompletion = (FIRVisionCloudText?, Error?) -> Void

    Parameters

    text

    The text detected in the image or nil if there was an error.

    error

    The error or nil.

  • A block containing an array of faces or nil if there’s an error.

    Declaration

    Swift

    typealias VisionFaceDetectionCallback = ([FIRVisionFace]?, Error?) -> Void

    Parameters

    faces

    Array of faces detected in the image or nil if there was an error.

    error

    The error or nil.

  • Type of all facical landmarks.

    Declaration

    Swift

    struct FaceLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
  • A callback containing an array of labels or nil if there’s an error.

    Declaration

    Swift

    typealias VisionLabelDetectionCallback = ([FIRVisionLabel]?, Error?) -> Void

    Parameters

    labels

    Array of labels detected in the image or nil if there was an error.

    error

    The error or nil.

  • A block containing an array of texts or nil if there’s an error.

    Declaration

    Swift

    typealias VisionTextDetectionCallback = ([VisionText]?, Error?) -> Void

    Parameters

    texts

    Array of texts detected in the image or nil if there was an error.

    error

    The error or nil.