<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHImageRequestOptionsDeliveryMode/opportunistic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@E@PHImageRequestOptionsDeliveryMode@PHImageRequestOptionsDeliveryModeOpportunistic"
  },
  "title" : "PHImageRequestOptionsDeliveryMode.opportunistic"
}
-->

# PHImageRequestOptionsDeliveryMode.opportunistic

Photos automatically provides one or more results in order to balance image quality and responsiveness.

```
case opportunistic
```

## Discussion

If the [`isSynchronous`](/documentation/Photos/PHImageRequestOptions/isSynchronous) property is `false`, Photos may call the `resultHandler` block (that you specified in the [`requestImage(for:targetSize:contentMode:options:resultHandler:)`](/documentation/Photos/PHImageManager/requestImage(for:targetSize:contentMode:options:resultHandler:)) method more than once. Photos may call your result handler once to provide a low-quality image suitable for displaying temporarily while it prepares a high-quality image. If low-quality image data is immediately available, this first call may occur before the [`requestImage(for:targetSize:contentMode:options:resultHandler:)`](/documentation/Photos/PHImageManager/requestImage(for:targetSize:contentMode:options:resultHandler:)) method returns. When the high-quality image is ready, Photos calls your result handler again to provide it.

If the image manager has already cached the requested image, or if the [`isSynchronous`](/documentation/Photos/PHImageRequestOptions/isSynchronous) property is `true`, Photos calls your result handler only once.

---

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)