Package apple.uikit.protocol
Interface UITextPasteItem
-
- All Known Subinterfaces:
UISearchTextFieldPasteItem
public interface UITextPasteItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NSDictionary<java.lang.String,?>defaultAttributes()These will be the default attributes that will be applied to plain strings when they are provided.NSItemProvideritemProvider()This is the NSItemProvider for the item being pasted or dropped.java.lang.ObjectlocalObject()This is nil for normal pastes, but might be filled with the UIDragItem's localObject for pastes from drops.voidsetAttachmentResult(NSTextAttachment textAttachment)provide an attachment result from this NSItemProvider's datavoidsetAttributedStringResult(NSAttributedString string)provide an attributed representation result from this NSItemProvider's datavoidsetDefaultResult()Use this to indicate that want the default transformation to happen.voidsetNoResult()Use this to indicate that you don't want the data of this NSItemProvider included in the resulting string.voidsetStringResult(java.lang.String string)provide a plain string representation result from this NSItemProvider's data
-
-
-
Method Detail
-
defaultAttributes
NSDictionary<java.lang.String,?> defaultAttributes()
These will be the default attributes that will be applied to plain strings when they are provided. You can use these to make your own attributed string if you want.
-
itemProvider
NSItemProvider itemProvider()
This is the NSItemProvider for the item being pasted or dropped. You should set a result for this item using one of the methods below.
-
localObject
java.lang.Object localObject()
This is nil for normal pastes, but might be filled with the UIDragItem's localObject for pastes from drops.
-
setAttachmentResult
void setAttachmentResult(NSTextAttachment textAttachment)
provide an attachment result from this NSItemProvider's data
-
setAttributedStringResult
void setAttributedStringResult(NSAttributedString string)
provide an attributed representation result from this NSItemProvider's data
-
setDefaultResult
void setDefaultResult()
Use this to indicate that want the default transformation to happen. If the item data for the item provider is not supported, this action will be the same as `setNoResult`. You can use this as a fallback for any items you are not handling yourself.
-
setNoResult
void setNoResult()
Use this to indicate that you don't want the data of this NSItemProvider included in the resulting string.
-
setStringResult
void setStringResult(java.lang.String string)
provide a plain string representation result from this NSItemProvider's data
-
-