public class NSTextAttachment extends NSObject implements NSTextAttachmentLayout, NSTextAttachmentContainer, NSSecureCoding, UIAccessibilityContentSizeCategoryImageAdjusting
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSTextAttachment(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
boolean |
adjustsImageSizeForAccessibilityContentSizeCategory()
When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.
|
static NSTextAttachment |
alloc() |
static NSTextAttachment |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsTextAttachmentView()
When YES, the text attachment tries to use a text attachment view returned by -viewProviderForParentView:location:textContainer:.
|
CGRect |
attachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(NSDictionary<java.lang.String,?> attributes,
NSTextLocation location,
NSTextContainer textContainer,
CGRect proposedLineFragment,
CGPoint position)
Returns the layout bounds.
|
CGRect |
attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(NSTextContainer textContainer,
CGRect lineFrag,
CGPoint position,
long charIndex)
Returns the layout bounds to the layout manager.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
CGRect |
bounds()
Defines the layout bounds of the receiver's graphical representation in the text coordinate system.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSData |
contents()
These two properties define the contents for the text attachment.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
java.lang.String |
fileType() |
NSFileWrapper |
fileWrapper()
Optionally, NSTextAttachment can be associated with a file wrapper.
|
static long |
hash_static() |
UIImage |
image()
Image representing the text attachment contents.
|
UIImage |
imageForBoundsAttributesLocationTextContainer(CGRect bounds,
NSDictionary<java.lang.String,?> attributes,
NSTextLocation location,
NSTextContainer textContainer)
Returns the image object rendered at bounds inside textContainer.
|
UIImage |
imageForBoundsTextContainerCharacterIndex(CGRect imageBounds,
NSTextContainer textContainer,
long charIndex)
Returns the image object rendered by NSLayoutManager at imageBounds inside textContainer.
|
NSTextAttachment |
init() |
NSTextAttachment |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSTextAttachment |
initWithDataOfType(NSData contentData,
java.lang.String uti)
Designated initializer.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
double |
lineLayoutPadding()
Layout padding before and after the text attachment bounds.
|
static NSTextAttachment |
new_objc() |
static void |
registerTextAttachmentViewProviderClassForFileType(org.moe.natj.objc.Class textAttachmentViewProviderClass,
java.lang.String fileType) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)
When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.
|
void |
setAllowsTextAttachmentView(boolean value)
When YES, the text attachment tries to use a text attachment view returned by -viewProviderForParentView:location:textContainer:.
|
void |
setBounds(CGRect value)
Defines the layout bounds of the receiver's graphical representation in the text coordinate system.
|
void |
setContents(NSData value)
These two properties define the contents for the text attachment.
|
void |
setFileType(java.lang.String value) |
void |
setFileWrapper(NSFileWrapper value)
Optionally, NSTextAttachment can be associated with a file wrapper.
|
void |
setImage(UIImage value)
Image representing the text attachment contents.
|
void |
setLineLayoutPadding(double value)
Layout padding before and after the text attachment bounds.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static org.moe.natj.objc.Class |
textAttachmentViewProviderClassForFileType(java.lang.String fileType)
Factory methods for defining the mapping between UTI and text attachment view provider class
|
static NSTextAttachment |
textAttachmentWithImage(UIImage image) |
boolean |
usesTextAttachmentView()
Returns YES if the text attachment is configured to use text attachment views.
|
static long |
version_static() |
NSTextAttachmentViewProvider |
viewProviderForParentViewLocationTextContainer(UIView parentView,
NSTextLocation location,
NSTextContainer textContainer)
Returns the text attachment view provider corresponding to -fileType.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSTextAttachment alloc()
public static NSTextAttachment allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSTextAttachment new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public CGRect attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(NSTextContainer textContainer, CGRect lineFrag, CGPoint position, long charIndex)
NSTextAttachmentContainerattachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex in interface NSTextAttachmentContainerpublic CGRect bounds()
public NSData contents()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic java.lang.String fileType()
public NSFileWrapper fileWrapper()
public UIImage image()
public UIImage imageForBoundsTextContainerCharacterIndex(CGRect imageBounds, NSTextContainer textContainer, long charIndex)
NSTextAttachmentContainerimageForBoundsTextContainerCharacterIndex in interface NSTextAttachmentContainerpublic NSTextAttachment init()
public NSTextAttachment initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSTextAttachment initWithDataOfType(NSData contentData, java.lang.String uti)
public void setBounds(CGRect value)
public void setContents(NSData value)
public void setFileType(java.lang.String value)
public void setFileWrapper(NSFileWrapper value)
public void setImage(UIImage value)
public boolean adjustsImageSizeForAccessibilityContentSizeCategory()
UIAccessibilityContentSizeCategoryImageAdjustingadjustsImageSizeForAccessibilityContentSizeCategory in interface UIAccessibilityContentSizeCategoryImageAdjustingpublic void setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)
UIAccessibilityContentSizeCategoryImageAdjustingsetAdjustsImageSizeForAccessibilityContentSizeCategory in interface UIAccessibilityContentSizeCategoryImageAdjustingpublic static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic static NSTextAttachment textAttachmentWithImage(UIImage image)
public boolean allowsTextAttachmentView()
public CGRect attachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(NSDictionary<java.lang.String,?> attributes, NSTextLocation location, NSTextContainer textContainer, CGRect proposedLineFragment, CGPoint position)
NSTextAttachmentLayoutattachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition in interface NSTextAttachmentLayoutpublic UIImage imageForBoundsAttributesLocationTextContainer(CGRect bounds, NSDictionary<java.lang.String,?> attributes, NSTextLocation location, NSTextContainer textContainer)
NSTextAttachmentLayoutimageForBoundsAttributesLocationTextContainer in interface NSTextAttachmentLayoutpublic double lineLayoutPadding()
public static void registerTextAttachmentViewProviderClassForFileType(org.moe.natj.objc.Class textAttachmentViewProviderClass,
java.lang.String fileType)
public void setAllowsTextAttachmentView(boolean value)
public void setLineLayoutPadding(double value)
public static org.moe.natj.objc.Class textAttachmentViewProviderClassForFileType(java.lang.String fileType)
public boolean usesTextAttachmentView()
public NSTextAttachmentViewProvider viewProviderForParentViewLocationTextContainer(UIView parentView, NSTextLocation location, NSTextContainer textContainer)
NSTextAttachmentLayoutviewProviderForParentViewLocationTextContainer in interface NSTextAttachmentLayout