Package apple.foundation
Class NSAttributedString
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSAttributedString
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSItemProviderReading,NSItemProviderWriting,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableAttributedString
public class NSAttributedString extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading, NSItemProviderWriting
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlockstatic interfaceNSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlockstatic interfaceNSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandlerstatic interfaceNSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandlerstatic interfaceNSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandlerstatic interfaceNSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSItemProviderWriting
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSAttributedString(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)java.lang.Object_objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)NSArray<java.lang.String>_readableTypeIdentifiersForItemProvider()boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.NSArray<java.lang.String>_writableTypeIdentifiersForItemProvider_static()static booleanaccessInstanceVariablesDirectly()static NSAttributedStringalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)java.lang.ObjectattributeAtIndexEffectiveRange(java.lang.String attrName, long location, NSRange range)java.lang.ObjectattributeAtIndexLongestEffectiveRangeInRange(java.lang.String attrName, long location, NSRange range, NSRange rangeLimit)static NSAttributedStringattributedStringWithAttachment(NSTextAttachment attachment)A convenience method for creating an attributed string containing attachment using NSAttachmentCharacter as the base character.NSAttributedStringattributedSubstringFromRange(NSRange range)NSDictionary<java.lang.String,?>attributesAtIndexEffectiveRange(long location, NSRange range)NSDictionary<java.lang.String,?>attributesAtIndexLongestEffectiveRangeInRange(long location, NSRange range, NSRange rangeLimit)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)CGRectboundingRectWithSizeOptionsContext(CGSize size, long options, NSStringDrawingContext context)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()booleancontainsAttachmentsInRange(NSRange range)Returns YES if the receiver contains a property configured (NSAttachmentAttributeName with NSAttachmentCharacter) in rangejava.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)NSDatadataFromRangeDocumentAttributesError(NSRange range, NSDictionary<java.lang.String,?> dict, org.moe.natj.general.ptr.Ptr<NSError> error)Generates an NSData object for the receiver contents in range.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddrawAtPoint(CGPoint point)voiddrawInRect(CGRect rect)voiddrawWithRectOptionsContext(CGRect rect, long options, NSStringDrawingContext context)voidencodeWithCoder(NSCoder coder)voidenumerateAttributeInRangeOptionsUsingBlock(java.lang.String attrName, NSRange enumerationRange, long opts, NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock block)voidenumerateAttributesInRangeOptionsUsingBlock(NSRange enumerationRange, long opts, NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock block)NSFileWrapperfileWrapperFromRangeDocumentAttributesError(NSRange range, NSDictionary<java.lang.String,?> dict, org.moe.natj.general.ptr.Ptr<NSError> error)Returns an NSFileWrapper object for the receiver contents in range.static longhash_static()NSAttributedStringinit()NSAttributedStringinitWithAttributedString(NSAttributedString attrStr)NSAttributedStringinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERNSAttributedStringinitWithDataOptionsDocumentAttributesError(NSData data, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)NSAttributedStringinitWithFileURLOptionsDocumentAttributesError(NSURL url, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.NSAttributedStringinitWithString(java.lang.String str)NSAttributedStringinitWithStringAttributes(java.lang.String str, NSDictionary<java.lang.String,?> attrs)NSAttributedStringinitWithURLOptionsDocumentAttributesError(NSURL url, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)Methods initializing the receiver contents with an external document data.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisEqualToAttributedString(NSAttributedString other)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)longitemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlength()NSProgressloadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)One of writableTypeIdentifiersForItemProviderstatic voidloadFromHTMLWithDataOptionsCompletionHandler(NSData data, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)Converts HTML data into an attributed string.static voidloadFromHTMLWithFileURLOptionsCompletionHandler(NSURL fileURL, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)Converts a local HTML file into an attributed string.static voidloadFromHTMLWithRequestOptionsCompletionHandler(NSURLRequest request, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)Loads an HTML URL request and converts the contents into an attributed string.static voidloadFromHTMLWithStringOptionsCompletionHandler(java.lang.String string, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)Converts an HTML string into an attributed string.java.lang.ObjectmutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.Objectnew_objc()static java.lang.ObjectobjectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)static NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)CGSizesize()java.lang.Stringstring()static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()static longversion_static()NSArray<java.lang.String>writableTypeIdentifiersForItemProvider()static NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSAttributedString alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attributedStringWithAttachment
public static NSAttributedString attributedStringWithAttachment(NSTextAttachment attachment)
A convenience method for creating an attributed string containing attachment using NSAttachmentCharacter as the base character.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
version_static
public static long version_static()
-
attributeAtIndexEffectiveRange
public java.lang.Object attributeAtIndexEffectiveRange(java.lang.String attrName, long location, NSRange range)
-
attributeAtIndexLongestEffectiveRangeInRange
public java.lang.Object attributeAtIndexLongestEffectiveRangeInRange(java.lang.String attrName, long location, NSRange range, NSRange rangeLimit)
-
attributedSubstringFromRange
public NSAttributedString attributedSubstringFromRange(NSRange range)
-
attributesAtIndexEffectiveRange
public NSDictionary<java.lang.String,?> attributesAtIndexEffectiveRange(long location, NSRange range)
-
attributesAtIndexLongestEffectiveRangeInRange
public NSDictionary<java.lang.String,?> attributesAtIndexLongestEffectiveRangeInRange(long location, NSRange range, NSRange rangeLimit)
-
boundingRectWithSizeOptionsContext
public CGRect boundingRectWithSizeOptionsContext(CGSize size, long options, NSStringDrawingContext context)
-
containsAttachmentsInRange
public boolean containsAttachmentsInRange(NSRange range)
Returns YES if the receiver contains a property configured (NSAttachmentAttributeName with NSAttachmentCharacter) in range
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
dataFromRangeDocumentAttributesError
public NSData dataFromRangeDocumentAttributesError(NSRange range, NSDictionary<java.lang.String,?> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
Generates an NSData object for the receiver contents in range. It requires a document attributes dict specifying at least the NSDocumentTypeDocumentAttribute to determine the format to be written.
-
drawAtPoint
public void drawAtPoint(CGPoint point)
-
drawInRect
public void drawInRect(CGRect rect)
-
drawWithRectOptionsContext
public void drawWithRectOptionsContext(CGRect rect, long options, NSStringDrawingContext context)
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateAttributeInRangeOptionsUsingBlock
public void enumerateAttributeInRangeOptionsUsingBlock(java.lang.String attrName, NSRange enumerationRange, long opts, NSAttributedString.Block_enumerateAttributeInRangeOptionsUsingBlock block)
-
enumerateAttributesInRangeOptionsUsingBlock
public void enumerateAttributesInRangeOptionsUsingBlock(NSRange enumerationRange, long opts, NSAttributedString.Block_enumerateAttributesInRangeOptionsUsingBlock block)
-
fileWrapperFromRangeDocumentAttributesError
public NSFileWrapper fileWrapperFromRangeDocumentAttributesError(NSRange range, NSDictionary<java.lang.String,?> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
Returns an NSFileWrapper object for the receiver contents in range. It requires a document attributes dict specifying at least the NSDocumentTypeDocumentAttribute to determine the format to be written. The method returns a directory file wrapper for those document types represented by a file package such as NSRTFDTextDocumentType; otherwise, it returns a regular-file file wrapper.
-
init
public NSAttributedString init()
-
initWithAttributedString
public NSAttributedString initWithAttributedString(NSAttributedString attrStr)
-
initWithCoder
public NSAttributedString initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithDataOptionsDocumentAttributesError
public NSAttributedString initWithDataOptionsDocumentAttributesError(NSData data, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
-
initWithFileURLOptionsDocumentAttributesError
@Deprecated public NSAttributedString initWithFileURLOptionsDocumentAttributesError(NSURL url, NSDictionary<?,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<?,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.
-
initWithString
public NSAttributedString initWithString(java.lang.String str)
-
initWithStringAttributes
public NSAttributedString initWithStringAttributes(java.lang.String str, NSDictionary<java.lang.String,?> attrs)
-
initWithURLOptionsDocumentAttributesError
public NSAttributedString initWithURLOptionsDocumentAttributesError(NSURL url, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> dict, org.moe.natj.general.ptr.Ptr<NSError> error)
Methods initializing the receiver contents with an external document data. options specify document attributes for interpreting the document contents. NSDocumentTypeDocumentAttribute, NSCharacterEncodingDocumentAttribute, and NSDefaultAttributesDocumentAttribute are supported options key. When they are not specified, these methods will examine the data and do their best to detect the appropriate attributes. If dict is non-NULL, it will return a dictionary with various document-wide attributes accessible via NS...DocumentAttribute keys.
-
isEqualToAttributedString
public boolean isEqualToAttributedString(NSAttributedString other)
-
length
public long length()
-
mutableCopyWithZone
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
size
public CGSize size()
-
string
public java.lang.String string()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding
-
itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
-
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
- Specified by:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin interfaceNSItemProviderWriting
-
itemProviderVisibilityForRepresentationWithTypeIdentifier
public long itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)
-
loadDataWithTypeIdentifierForItemProviderCompletionHandler
public NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
Description copied from interface:NSItemProviderWritingOne of writableTypeIdentifiersForItemProvider- Specified by:
loadDataWithTypeIdentifierForItemProviderCompletionHandlerin interfaceNSItemProviderWriting
-
objectWithItemProviderDataTypeIdentifierError
public static java.lang.Object objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
-
_objectWithItemProviderDataTypeIdentifierError
public java.lang.Object _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
- Specified by:
_objectWithItemProviderDataTypeIdentifierErrorin interfaceNSItemProviderReading
-
readableTypeIdentifiersForItemProvider
public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading
-
writableTypeIdentifiersForItemProvider_static
public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
-
_writableTypeIdentifiersForItemProvider_static
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
- Specified by:
_writableTypeIdentifiersForItemProvider_staticin interfaceNSItemProviderWriting
-
writableTypeIdentifiersForItemProvider
public NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
-
loadFromHTMLWithDataOptionsCompletionHandler
public static void loadFromHTMLWithDataOptionsCompletionHandler(NSData data, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithDataOptionsCompletionHandler completionHandler)
Converts HTML data into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. If neither NSTextEncodingNameDocumentOption nor NSCharacterEncodingDocumentOption is supplied, a best-guess encoding is used.- Parameters:
data- The HTML data to use as the contents.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption, NSTextEncodingNameDocumentOption, and NSCharacterEncodingDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithFileURLOptionsCompletionHandler
public static void loadFromHTMLWithFileURLOptionsCompletionHandler(NSURL fileURL, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithFileURLOptionsCompletionHandler completionHandler)
Converts a local HTML file into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. If NSReadAccessURLDocumentOption references a single file, only that file may be loaded by WebKit. If NSReadAccessURLDocumentOption references a directory, files inside that directory may be loaded by WebKit.- Parameters:
fileURL- The file URL to load.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption and NSReadAccessURLDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithRequestOptionsCompletionHandler
public static void loadFromHTMLWithRequestOptionsCompletionHandler(NSURLRequest request, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithRequestOptionsCompletionHandler completionHandler)
Loads an HTML URL request and converts the contents into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error.- Parameters:
request- The request specifying the URL to load.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption and NSTimeoutDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
loadFromHTMLWithStringOptionsCompletionHandler
public static void loadFromHTMLWithStringOptionsCompletionHandler(java.lang.String string, NSDictionary<java.lang.String,?> options, NSAttributedString.Block_loadFromHTMLWithStringOptionsCompletionHandler completionHandler)Converts an HTML string into an attributed string. The completionHandler is passed the attributed string result along with any document-level attributes, or an error. NSBaseURLDocumentOption is used to resolve relative URLs within the document.- Parameters:
string- The HTML string to use as the contents.options- Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption and NSBaseURLDocumentOption are supported option keys.completionHandler- A block to invoke when the operation completes or fails.
-
-