Package org.robovm.apple.uikit
Class NSTextSelection
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.NSTextSelection
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class NSTextSelection extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 15.0 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSTextSelection.NSTextSelectionPtrNested 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
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSTextSelection()NSTextSelection(NSArray<NSTextRange> textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity)NSTextSelection(NSCoder coder)protectedNSTextSelection(NSObject.Handle h, long handle)protectedNSTextSelection(NSObject.SkipInit skipInit)NSTextSelection(NSTextLocation location, NSTextSelectionAffinity affinity)NSTextSelection(NSTextRange range, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity) -
Method Summary
Modifier and Type Method Description voidencode(NSCoder coder)NSTextSelectionAffinitygetAffinity()doublegetAnchorPositionOffset()NSTextSelectionGranularitygetGranularity()NSTextLocationgetSecondarySelectionLocation()NSArray<NSTextRange>getTextRanges()NSDictionary<NSString,?>getTypingAttributes()protected longinit(NSArray<NSTextRange> textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity)protected longinit(NSCoder coder)protected longinit(NSTextLocation location, NSTextSelectionAffinity affinity)protected longinit(NSTextRange range, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity)booleanisLogical()booleanisTransient()voidsetAnchorPositionOffset(double v)voidsetLogical(boolean v)voidsetSecondarySelectionLocation(NSTextLocation v)voidsetTypingAttributes(NSDictionary<NSString,?> v)static booleansupportsSecureCoding()NSTextSelectiontextSelection(NSArray<NSTextRange> textRanges)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, updateStrongRef
-
Constructor Details
-
NSTextSelection
protected NSTextSelection() -
NSTextSelection
-
NSTextSelection
-
NSTextSelection
public NSTextSelection(NSArray<NSTextRange> textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity) -
NSTextSelection
-
NSTextSelection
public NSTextSelection(NSTextRange range, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity) -
NSTextSelection
-
-
Method Details
-
getTextRanges
-
getGranularity
-
getAffinity
-
isTransient
public boolean isTransient() -
getAnchorPositionOffset
public double getAnchorPositionOffset() -
setAnchorPositionOffset
public void setAnchorPositionOffset(double v) -
isLogical
public boolean isLogical() -
setLogical
public void setLogical(boolean v) -
getSecondarySelectionLocation
-
setSecondarySelectionLocation
-
getTypingAttributes
-
setTypingAttributes
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
init
protected long init(NSArray<NSTextRange> textRanges, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity) -
init
-
init
protected long init(NSTextRange range, NSTextSelectionAffinity affinity, NSTextSelectionGranularity granularity) -
init
-
textSelection
-
encode
-