Instance Property

previewImageHandler

The custom preview image handler block for the item provider.

Declaration

var previewImageHandler: NSItemProvider.LoadHandler? { get set }

Discussion

In your image handler block, return an NSURL object that specifies a file, or return an NSData object.

See Also

Generating a Preview Image

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

Loads the preview image for the item that is represented by the item provider.