Protocol

UITextPasteItem

The interface for obtaining information about, and interacting with, a text item for pasting or dropping.

Declaration

@protocol UITextPasteItem

Topics

Accessing the Text Paste Item's Data

itemProvider

The item provider for the item being pasted or dropped.

Required.

localObject

The custom local object that the copy or drag source optionally attached to the drag item.

Required.

Getting the Default Attributes for a String

defaultAttributes

The dictionary of default attributes that the system applies, during pasting or dropping, to plaintext strings from an item provider.

Required.

Setting a Text Paste Item's Result Value

setStringResult:

Sets a text paste item’s textual value to a specified plaintext string from the item provider.

Required.

setAttributedStringResult:

Sets a text paste item’s textual value to a specified attributed string from the item provider.

Required.

setAttachmentResult:

Sets a text paste item’s attachment value to a specified value.

Required.

setDefaultResult

Sets the text paste item's value to the default value based on the item provider's data.

Required.

setNoResult

Sets the text paste item’s textual value to not include data from the item provider.

Required.

Relationships

Inherits From

See Also

Pasteboard Support

UITextPasteDelegate

The interface for handling pasting and dropping of text, using item providers.

UITextPasteConfigurationSupporting

The interface for text-oriented responder objects to participate in the unified paste and drop system in iOS.