<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/StatefulRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision15StatefulRequestP"
  },
  "title" : "StatefulRequest"
}
-->

# StatefulRequest

The protocol for a type that builds evidence of a condition over time.

```
protocol StatefulRequest : VisionRequest
```

## Topics

### Inspecting the request

[`var frameAnalysisSpacing: CMTime`](/documentation/Vision/StatefulRequest/frameAnalysisSpacing)

The reciprocal of the maximum rate to process buffers.

[`var minimumLatencyFrameCount: Int`](/documentation/Vision/StatefulRequest/minimumLatencyFrameCount)

The minimum number of frames that the request has to process before reporting any observations.

### Comparing the request

[`static func == (Self, Self) -> Bool`](/documentation/Vision/StatefulRequest/==(_:_:))

Returns a Boolean value indicating whether two values are equal.

### Hashing the request

[`func hash(into: inout Hasher)`](/documentation/Vision/StatefulRequest/hash(into:))

Hashes the essential components of this value by feeding them into the
given hasher.

### Default Implementations

[Equatable Implementations](/documentation/Vision/StatefulRequest/Equatable-Implementations)

[Hashable Implementations](/documentation/Vision/StatefulRequest/Hashable-Implementations)

## Relationships

### Conforming Types

[`DetectTrajectoriesRequest`](/documentation/Vision/DetectTrajectoriesRequest)

[`TrackHomographicImageRegistrationRequest`](/documentation/Vision/TrackHomographicImageRegistrationRequest)

[`GeneratePersonSegmentationRequest`](/documentation/Vision/GeneratePersonSegmentationRequest)

[`TrackRectangleRequest`](/documentation/Vision/TrackRectangleRequest)

[`DetectHumanBodyPose3DRequest`](/documentation/Vision/DetectHumanBodyPose3DRequest)

[`TrackOpticalFlowRequest`](/documentation/Vision/TrackOpticalFlowRequest)

[`TrackObjectRequest`](/documentation/Vision/TrackObjectRequest)

[`TrackTranslationalImageRegistrationRequest`](/documentation/Vision/TrackTranslationalImageRegistrationRequest)

### Inherits From

[`Equatable`](/documentation/Swift/Equatable)

[`VisionRequest`](/documentation/Vision/VisionRequest)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)