One Logo Pool Ball
Vision · IOS API REFERENCE

VNRequest

class · iOS 11.0+ · SDK 27.1

class VNRequest

Members (17)

get · iOS 12.0+

currentRevision

TypeScript
static get currentRevision(): number
Swift declaration
class var currentRevision: Int { get }
get · iOS 12.0+

defaultRevision

TypeScript
static get defaultRevision(): number
Swift declaration
class var defaultRevision: Int { get }
get · iOS 12.0+

supportedRevisions

TypeScript
static get supportedRevisions(): _Foundation_IndexSet
Swift declaration
class var supportedRevisions: IndexSet { get }
method · iOS 13.0+

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 11.0+

init

TypeScript
static init(): VNRequest
Swift declaration
convenience init()
init · iOS 11.0+

init

TypeScript
static initCompletionHandler(completionHandler?: (((arg0: VNRequest, arg1: (NativeError) | null) => void)) | null): VNRequest
Swift declaration
init(completionHandler: VNRequestCompletionHandler? = nil)
get · iOS 11.0+

completionHandler

TypeScript
get completionHandler(): (((arg0: VNRequest, arg1: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var completionHandler: VNRequestCompletionHandler? { get }
get · iOS 11.0+

preferBackgroundProcessing

TypeScript
get preferBackgroundProcessing(): boolean
Swift declaration
var preferBackgroundProcessing: Bool { get set }
set · iOS 11.0+

preferBackgroundProcessing

TypeScript
set preferBackgroundProcessing(value: boolean)
Swift declaration
var preferBackgroundProcessing: Bool { get set }
get · iOS 11.0+

results

TypeScript
get results(): (Array<VNObservation>) | null
Swift declaration
var results: [VNObservation]? { get }
get · iOS 12.0+

revision

TypeScript
get revision(): number
Swift declaration
var revision: Int { get set }
set · iOS 12.0+

revision

TypeScript
set revision(value: number)
Swift declaration
var revision: Int { get set }
get · iOS 11.0+ · Deprecated in iOS 17.0

usesCPUOnly

TypeScript
get usesCPUOnly(): boolean
Swift declaration
var usesCPUOnly: Bool { get set }
set · iOS 11.0+ · Deprecated in iOS 17.0

usesCPUOnly

TypeScript
set usesCPUOnly(value: boolean)
Swift declaration
var usesCPUOnly: Bool { get set }
method · iOS 17.0+

computeDevice

TypeScript
computeDevice(computeStage: VNComputeStage): (_CoreML_MLComputeDevice) | null
Swift declaration
@nonobjc func computeDevice(for computeStage: VNComputeStage) -> MLComputeDevice?
method · iOS 17.0+

setComputeDevice

TypeScript
setComputeDevice(computeDevice: (_CoreML_MLComputeDevice) | null, computeStage: VNComputeStage): void
Swift declaration
@nonobjc func setComputeDevice(_ computeDevice: MLComputeDevice?, for computeStage: VNComputeStage)
get · iOS 17.0+

supportedComputeStageDevices

TypeScript
get supportedComputeStageDevices(): NativeMap<VNComputeStage, Array<_CoreML_MLComputeDevice>>
Swift declaration
@nonobjc var supportedComputeStageDevices: [VNComputeStage : [MLComputeDevice]] { get throws }

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →