Type Definitions
The following type definitions are available globally.
-
A block containing an array of barcodes or
nilif there’s an error.Declaration
Swift
typealias VisionBarcodeDetectionCallback = ([FIRVisionBarcode]?, Error?) -> VoidParameters
barcodesArray of barcodes detected in the image or
nilif there was an error.errorThe error or
nil. -
A block containing an array of landmark or
nilif there’s an error.Declaration
Swift
typealias VisionCloudLandmarkDetectionCompletion = ([FIRVisionCloudLandmark]?, Error?) -> VoidParameters
landmarksArray of landmark detected in the image or
nilif there was an error.errorThe error or
nil. -
The callback to invoke when the document text recognition completes.
Declaration
Swift
typealias VisionDocumentTextRecognitionCallback = (FIRVisionDocumentText?, Error?) -> VoidParameters
textRecognized document text in the image or
nilif there was an error or no text was detected.errorThe error or
nil. -
Facial contour types.
Declaration
Swift
struct FaceContourType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable -
A block containing an array of faces or
nilif there’s an error.Declaration
Swift
typealias VisionFaceDetectionCallback = ([FIRVisionFace]?, Error?) -> VoidParameters
facesArray of faces detected in the image or
nilif there was an error.errorThe error or
nil. -
Type of all facial landmarks.
Declaration
Swift
struct FaceLandmarkType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable -
A block containing an array of labels or
nilif there’s an error.Declaration
Swift
typealias VisionImageLabelerCallback = ([FIRVisionImageLabel]?, Error?) -> VoidParameters
labelsArray of labels detected in the image or
nilif there was an error.errorThe error or
nil. -
The callback to invoke when the text recognition completes.
Declaration
Swift
typealias VisionTextRecognitionCallback = (FIRVisionText?, Error?) -> VoidParameters
textRecognized text in the image or
nilif there was an error or no text was detected.errorThe error or
nil.