Skip to main content

ProGlove Documentation

Initiate image streaming mode

To initiate image streaming mode and retrieve an image captured by your scanner, use the PGImageManager method. The method accepts PGCommand initialized with PGCaptureImageRequest, and completionHandler parameters.

If the request is successful, the completion handler will return a PGImage object containing the image information and data. In case the request fails, the result will be an error object.

Example 114. Swift
func takeImage(_ captureImageCommand: PGCommand, completionHandler: @escaping (PGImage?, Error?) -> Void)


Example 115. Objective-C
- (void)takeImage:(PGCommand * _Nonnull) completionHandler:^(PGImage * _Nullable, NSError * _Nullable)completionHandler