Package org.robovm.apple.foundation
Class NSAttributedString
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.foundation.NSAttributedString
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
- Direct Known Subclasses:
NSMutableAttributedString
public class NSAttributedString extends NSObject implements NSSecureCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSAttributedString.Keysstatic classNSAttributedString.KeysNSBundlestatic classNSAttributedString.NSAttributedStringPtrNested 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 inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
-
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, 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
-
Constructor Details
-
NSAttributedString
public NSAttributedString() -
NSAttributedString
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
public NSAttributedString(NSURL markdownFile, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 15.0 and later.
-
NSAttributedString
public NSAttributedString(NSData markdown, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 15.0 and later.
-
NSAttributedString
public NSAttributedString(String markdownString, NSAttributedStringMarkdownParsingOptions options, NSURL baseURL) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 15.0 and later.
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
-
NSAttributedString
- Since:
- Available in iOS 7.0 and later.
-
NSAttributedString
public NSAttributedString(NSURL url, NSAttributedStringDocumentAttributes options) throws NSErrorException- Parameters:
url-options-- Throws:
NSErrorException- Since:
- Available in iOS 7.0 and later.
-
NSAttributedString
public NSAttributedString(NSData data, NSAttributedStringDocumentAttributes options) throws NSErrorException- Parameters:
data-options-- Throws:
NSErrorException- Since:
- Available in iOS 7.0 and later.
-
-
Method Details
-
getString
-
length
public long length() -
supportsSecureCoding
public static boolean supportsSecureCoding() -
equals
-
getAttribute
-
getAttribute
-
getAttribute
-
getAttribute
-
getAttribute
-
getAttribute
public NSObject getAttribute(NSAttributedStringAttribute attribute, long location, NSRange range, NSRange rangeLimit) -
getAttribute
public NSObject getAttribute(CMTextMarkupAttribute attribute, long location, NSRange range, NSRange rangeLimit) -
getAttribute
public NSObject getAttribute(CTAttributedStringAttribute attribute, long location, NSRange range, NSRange rangeLimit) -
getAttributes
-
getAttributes
public NSAttributedStringAttributes getAttributes(long location, NSRange range, NSRange rangeLimit) -
getTextMarkupAttributes
-
getTextMarkupAttributes
public CMTextMarkupAttributes getTextMarkupAttributes(long location, NSRange range, NSRange rangeLimit) -
getCoreTextAttributes
-
getCoreTextAttributes
public CTAttributedStringAttributes getCoreTextAttributes(long location, NSRange range, NSRange rangeLimit) -
enumerateAttribute
public void enumerateAttribute(String name, NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSObject,NSRange,BooleanPtr> block)- Since:
- Available in iOS 4.0 and later.
-
enumerateAttribute
public void enumerateAttribute(NSAttributedStringAttribute attribute, NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSObject,NSRange,BooleanPtr> block)- Since:
- Available in iOS 4.0 and later.
-
enumerateAttribute
public void enumerateAttribute(CMTextMarkupAttribute attribute, NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSObject,NSRange,BooleanPtr> block)- Since:
- Available in iOS 4.0 and later.
-
enumerateAttribute
public void enumerateAttribute(CTAttributedStringAttribute attribute, NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSObject,NSRange,BooleanPtr> block)- Since:
- Available in iOS 4.0 and later.
-
getData
public NSData getData(NSRange range, NSAttributedStringDocumentAttributes dict) throws NSErrorException- Parameters:
range-dict-- Returns:
- Throws:
NSErrorException- Since:
- Available in iOS 7.0 and later.
-
getFileWrapper
public NSFileWrapper getFileWrapper(NSRange range, NSAttributedStringDocumentAttributes dict) throws NSErrorException- Parameters:
range-dict-- Returns:
- Throws:
NSErrorException- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 6.0 and later.
-
draw
- Since:
- Available in iOS 6.0 and later.
-
draw
- Since:
- Available in iOS 6.0 and later.
-
draw
- Since:
- Available in iOS 6.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSStringDrawingContext context)- Since:
- Available in iOS 6.0 and later.
-
replace
-
setAttributes
-
addAttribute
-
addAttributes
-
removeAttribute
-
replace
-
insert
-
append
-
delete
-
setAttributedString
-
beginEditing
public void beginEditing() -
endEditing
public void endEditing() -
getAttributesDictionary
-
getAttribute
-
substring
-
getAttributesDictionary
public NSDictionary<NSString,?> getAttributesDictionary(long location, NSRange range, NSRange rangeLimit) -
getAttribute
-
equalsTo
-
init
-
init
-
init
-
enumerateAttributes
public void enumerateAttributes(NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSDictionary<NSString,?>,NSRange,BooleanPtr> block) -
enumerateAttribute
public void enumerateAttribute(NSString attrName, NSRange enumerationRange, NSAttributedStringEnumerationOptions opts, VoidBlock3<NSObject,NSRange,BooleanPtr> block) -
attributedStringByInflectingString
- Since:
- Available in iOS 15.0 and later.
-
encode
-
init
-