Class

NSExtensionItem

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

Declaration

@interface NSExtensionItem : NSObject

Topics

Identifying the Item

attributedTitle

An optional title for the item.

userInfo

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

Item Contents

attachments

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

attributedContentText

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

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.

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