Protocol

VNRequestProgressProviding

A protocol for providing progress information on long-running tasks in Vision.

Declaration

protocol VNRequestProgressProviding

Overview

Adopt this protocol for potentially long-running Vision requests to provide information about progress throughout processing. For example, you can use the optional progressHandler to update the user interface, provide a percentage of completion, or process partial results.

Topics

Tracking Progress

var progressHandler: VNRequestProgressHandler

A block of code executed periodically during a Vision request to report progress on long-running tasks.

Required.

var indeterminate: Bool

A Boolean set to true when a request can't determine its progress in fractions completed.

Required.

Relationships

Inherits From

Conforming Types

See Also

Request Progress Tracking

typealias VNRequestProgressHandler

A block that is executed at intervals during the processing of a Vision request.