Class

NSExtensionItem

An immutable collection of values representing different aspects of an item for an extension to act upon.

Declaration

class NSExtensionItem : NSObject

Topics

Identifying the Item

var attributedTitle: NSAttributedString?

An optional title for the item.

var userInfo: [AnyHashable : Any]?

An optional dictionary of keys and values corresponding to the extension item’s properties.

Item Contents

var attachments: [NSItemProvider]?

An optional array of media data associated with the extension item.

var attributedContentText: NSAttributedString?

An optional string describing the extension item content.

Constants

Property Keys

These keys correspond to the extension item properties and are specified in the extension's Info.plist.

UTI Subtypes for Data Detector Types

These constants represent sub-Uniform Type Identifier of com.apple.structured-text, which conforms to public.plain-text. Use these constants to specify the type of data your extension works with.

Relationships

Inherits From

See Also

Attachments

class NSItemProvider

An item provider for conveying data or a file between processes during drag and drop or copy/paste activities, or from a host app to an app extension.

Add Functionality to Finder with Action Extensions

Implement Action Extensions to provide quick access to commonly used features of your app.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software