---
title: AVSampleBufferRequest.Mode.opportunistic
framework: avfoundation
role: symbol
role_heading: Case
path: avfoundation/avsamplebufferrequest/mode-swift.enum/opportunistic
---

# AVSampleBufferRequest.Mode.opportunistic

A mode that indicates that opportunistic sample buffer creation requests load data as soon as possible.

## Declaration

```swift
case opportunistic
```

## Discussion

Discussion In situations with multiple competing requests, a sample buffer generator may defer an opportunistic request in favor of another immediate request, or a scheduled requests with a presentation time close to the timebase time. important: The system may postpone an opportunistic request indefinitely. Don’t use this mode for time-sensitive processing.

## See Also

### Mode scheduling

- [AVSampleBufferRequest.Mode.immediate](avfoundation/avsamplebufferrequest/mode-swift.enum/immediate.md)
- [AVSampleBufferRequest.Mode.scheduled](avfoundation/avsamplebufferrequest/mode-swift.enum/scheduled.md)
