Contents

NSPreviewRepresentingActivityItem

A type that adds metadata to an item you share using the macOS share sheet.

Declaration

class NSPreviewRepresentingActivityItem

Overview

An NSPreviewRepresentingActivityItem object provides a concrete implementation of the NSPreviewRepresentableActivityItem protocol. Use it to create shareable items for common types such as strings or images, or when you don’t want to adopt the NSPreviewRepresentableActivityItem protocol directly in your app’s objects. To share the item from your app, initialize the NSSharingServicePicker object with this object.

Topics

Creating a Preview Activity Item

See Also

Share Panel