<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSItemProvider/loadPreviewImage(options:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSItemProvider(im)loadPreviewImageWithOptions:completionHandler:"
  },
  "title" : "loadPreviewImage(options:completionHandler:)"
}
-->

# loadPreviewImage(options:completionHandler:)

Loads the preview image for the item that the item provider represents.

```
func loadPreviewImage(options: [AnyHashable : Any]! = [:], completionHandler: NSItemProvider.CompletionHandler!)
```

## Parameters

`options`

A dictionary of keys and values that provide information about the item, such as the size of an image. For a list of possible keys, see [Options Dictionary Key](/documentation/Foundation/options-dictionary-key).

`completionHandler`

A completion handler block to execute with the results. The first parameter of this block must be a parameter of type [`NSData`](/documentation/Foundation/NSData), [`NSURL`](/documentation/Foundation/NSURL), <doc://com.apple.documentation/documentation/UIKit/UIImage> (in iOS), or <doc://com.apple.documentation/documentation/AppKit/NSImage> (in macOS) for receiving the image data. For more information about implementing the block, see [`NSItemProvider.CompletionHandler`](/documentation/Foundation/NSItemProvider/CompletionHandler).

## Discussion

To handle image preview yourself, provide a completion handler block that returns an [`NSData`](/documentation/Foundation/NSData) or [`NSURL`](/documentation/Foundation/NSURL) object, or an instance of a platform-specific image class (<doc://com.apple.documentation/documentation/UIKit/UIImage> or <doc://com.apple.documentation/documentation/AppKit/NSImage>).

This method supports implicit type coercion for the item parameter of the completion block.

---

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)