Contents

NSPreviewRepresentableActivityItem

An interface you adopt in custom objects that you want to share using the macOS share sheet.

Declaration

protocol NSPreviewRepresentableActivityItem : NSObjectProtocol

Overview

Adopt the NSPreviewRepresentableActivityItem interface in custom types your app makes available for sharing. Use this protocol to specify the item itself and a title and image the share sheet can use to create a preview for your item. To share the item from your app, initialize the NSSharingServicePicker object with the object that adopts this protocol.

Topics

Providing the Item to Share

Providing Metadata About the Item

See Also

App Services