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
,NSTextAttachmentContainer
,UIAccessibilityContentSizeCategoryImageAdjusting
,org.robovm.objc.ObjCProtocol
public class NSTextAttachment extends NSObject implements NSTextAttachmentContainer, NSCoding, UIAccessibilityContentSizeCategoryImageAdjusting
- Since:
- Available in iOS 7.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSTextAttachment.NSTextAttachmentPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
Fields Modifier and Type Field Description static char
AttachmentCharacter
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSTextAttachment()
NSTextAttachment(NSCoder decoder)
NSTextAttachment(NSData contentData, java.lang.String uti)
protected
NSTextAttachment(NSObject.Handle h, long handle)
protected
NSTextAttachment(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
adjustsImageSizeForAccessibilityContentSizeCategory()
void
encode(NSCoder coder)
CGRect
getAttachmentBounds(NSTextContainer textContainer, CGRect lineFrag, CGPoint position, long charIndex)
CGRect
getBounds()
NSData
getContents()
java.lang.String
getFileType()
NSFileWrapper
getFileWrapper()
UIImage
getImage()
UIImage
getImageForBounds(CGRect imageBounds, NSTextContainer textContainer, long charIndex)
protected long
init(NSCoder decoder)
protected long
init(NSData contentData, java.lang.String uti)
void
setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean v)
void
setBounds(CGRect v)
void
setContents(NSData v)
void
setFileType(java.lang.String v)
void
setFileWrapper(NSFileWrapper v)
void
setImage(UIImage v)
-
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, willChangeValues
-
-
-
-
Field Detail
-
AttachmentCharacter
public static final char AttachmentCharacter
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NSTextAttachment
public NSTextAttachment()
-
NSTextAttachment
protected NSTextAttachment(NSObject.Handle h, long handle)
-
NSTextAttachment
protected NSTextAttachment(NSObject.SkipInit skipInit)
-
NSTextAttachment
public NSTextAttachment(NSData contentData, java.lang.String uti)
- Since:
- Available in iOS 7.0 and later.
-
NSTextAttachment
public NSTextAttachment(NSCoder decoder)
-
-
Method Detail
-
getContents
public NSData getContents()
- Since:
- Available in iOS 7.0 and later.
-
setContents
public void setContents(NSData v)
- Since:
- Available in iOS 7.0 and later.
-
getFileType
public java.lang.String getFileType()
- Since:
- Available in iOS 7.0 and later.
-
setFileType
public void setFileType(java.lang.String v)
- Since:
- Available in iOS 7.0 and later.
-
getImage
public UIImage getImage()
- Since:
- Available in iOS 7.0 and later.
-
setImage
public void setImage(UIImage v)
- Since:
- Available in iOS 7.0 and later.
-
getBounds
public CGRect getBounds()
- Since:
- Available in iOS 7.0 and later.
-
setBounds
public void setBounds(CGRect v)
- Since:
- Available in iOS 7.0 and later.
-
getFileWrapper
public NSFileWrapper getFileWrapper()
-
setFileWrapper
public void setFileWrapper(NSFileWrapper v)
-
adjustsImageSizeForAccessibilityContentSizeCategory
public boolean adjustsImageSizeForAccessibilityContentSizeCategory()
- Specified by:
adjustsImageSizeForAccessibilityContentSizeCategory
in interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
setAdjustsImageSizeForAccessibilityContentSizeCategory
public void setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean v)
- Specified by:
setAdjustsImageSizeForAccessibilityContentSizeCategory
in interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
init
protected long init(NSData contentData, java.lang.String uti)
- Since:
- Available in iOS 7.0 and later.
-
getImageForBounds
public UIImage getImageForBounds(CGRect imageBounds, NSTextContainer textContainer, long charIndex)
- Specified by:
getImageForBounds
in interfaceNSTextAttachmentContainer
- Since:
- Available in iOS 7.0 and later.
-
getAttachmentBounds
public CGRect getAttachmentBounds(NSTextContainer textContainer, CGRect lineFrag, CGPoint position, long charIndex)
- Specified by:
getAttachmentBounds
in interfaceNSTextAttachmentContainer
- Since:
- Available in iOS 7.0 and later.
-
init
protected long init(NSCoder decoder)
-
-