Package org.robovm.apple.uikit
Class NSTextAttachment
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.NSTextAttachment
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,NSTextAttachmentContainer,NSTextAttachmentLayout,UIAccessibilityContentSizeCategoryImageAdjusting,ObjCProtocol
public class NSTextAttachment extends NSObject implements NSTextAttachmentLayout, NSTextAttachmentContainer, NSSecureCoding, UIAccessibilityContentSizeCategoryImageAdjusting
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSTextAttachment.NSTextAttachmentPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields Modifier and Type Field Description static charAttachmentCharacterFields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description NSTextAttachment()NSTextAttachment(NSCoder coder)NSTextAttachment(NSData contentData, String uti)protectedNSTextAttachment(NSObject.Handle h, long handle)protectedNSTextAttachment(NSObject.SkipInit skipInit)NSTextAttachment(UIImage image) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Field Details
-
AttachmentCharacter
public static final char AttachmentCharacter- See Also:
- Constant Field Values
-
-
Constructor Details
-
NSTextAttachment
public NSTextAttachment() -
NSTextAttachment
-
NSTextAttachment
-
NSTextAttachment
-
NSTextAttachment
- Since:
- Available in iOS 13.0 and later.
-
NSTextAttachment
-
-
Method Details
-
getContents
-
setContents
-
getFileType
-
setFileType
-
getImage
-
setImage
-
getBounds
-
setBounds
-
getFileWrapper
-
setFileWrapper
-
getLineLayoutPadding
public double getLineLayoutPadding()- Since:
- Available in iOS 15.0 and later.
-
setLineLayoutPadding
public void setLineLayoutPadding(double v)- Since:
- Available in iOS 15.0 and later.
-
allowsTextAttachmentView
public boolean allowsTextAttachmentView()- Since:
- Available in iOS 15.0 and later.
-
setAllowsTextAttachmentView
public void setAllowsTextAttachmentView(boolean v)- Since:
- Available in iOS 15.0 and later.
-
usesTextAttachmentView
public boolean usesTextAttachmentView()- Since:
- Available in iOS 15.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
adjustsImageSizeForAccessibilityContentSizeCategory
public boolean adjustsImageSizeForAccessibilityContentSizeCategory()- Specified by:
adjustsImageSizeForAccessibilityContentSizeCategoryin interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
setAdjustsImageSizeForAccessibilityContentSizeCategory
public void setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean v)- Specified by:
setAdjustsImageSizeForAccessibilityContentSizeCategoryin interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
init
-
textAttachmentViewProviderClassForFileType
- Since:
- Available in iOS 15.0 and later.
-
registerTextAttachmentViewProviderClass
public static void registerTextAttachmentViewProviderClass(Class<?> textAttachmentViewProviderClass, String fileType)- Since:
- Available in iOS 15.0 and later.
-
create
- Since:
- Available in iOS 13.0 and later.
-
imageForBounds
public UIImage imageForBounds(CGRect bounds, NSDictionary<NSString,?> attributes, NSTextLocation location, NSTextContainer textContainer)- Specified by:
imageForBoundsin interfaceNSTextAttachmentLayout- Since:
- Available in iOS 15.0 and later.
-
attachmentBoundsForAttributes
public CGRect attachmentBoundsForAttributes(NSDictionary<NSString,?> attributes, NSTextLocation location, NSTextContainer textContainer, CGRect proposedLineFragment, CGPoint position)- Specified by:
attachmentBoundsForAttributesin interfaceNSTextAttachmentLayout- Since:
- Available in iOS 15.0 and later.
-
viewProviderForParentView
public NSTextAttachmentViewProvider viewProviderForParentView(UIView parentView, NSTextLocation location, NSTextContainer textContainer)- Specified by:
viewProviderForParentViewin interfaceNSTextAttachmentLayout- Since:
- Available in iOS 15.0 and later.
-
getImageForBounds
public UIImage getImageForBounds(CGRect imageBounds, NSTextContainer textContainer, long charIndex)- Specified by:
getImageForBoundsin interfaceNSTextAttachmentContainer
-
getAttachmentBounds
public CGRect getAttachmentBounds(NSTextContainer textContainer, CGRect lineFrag, CGPoint position, long charIndex)- Specified by:
getAttachmentBoundsin interfaceNSTextAttachmentContainer
-
encode
-
init
-