AnnotatedString.Range
-
Cmn
data class AnnotatedString.Range<T : Any?>
The information attached on the text such as a SpanStyle.
Summary
Public constructors |
|
|---|---|
|
Cmn
|
|
|
Cmn
|
Public properties |
||
|---|---|---|
Int |
The end of the range where |
Cmn
|
T |
The object attached to |
Cmn
|
Int |
The start of the range where |
Cmn
|
String |
The tag used to distinguish the different ranges. |
Cmn
|
Public constructors
Range
<T : Any?> Range(item: T, start: Int, end: Int, tag: String)
| Parameters | |
|---|---|
item: T |
The object attached to |
start: Int |
The start of the range where |
end: Int |
The end of the range where |
tag: String |
The tag used to distinguish the different ranges. It is useful to store custom data. And |
Public properties
tag
val tag: String
The tag used to distinguish the different ranges. It is useful to store custom data. And Ranges with same tag can be queried with functions such as getStringAnnotations.