<div class='sourceset sourceset-android'>Android</div>

```kotlin
interface TextSegmentIterator
```

## Functions

<h2 id="following-current">following</h2>

```kotlin
fun following(current: Int): IntArray?
```

Given the current position, returning the start and end of next element in an array.

<hr class="docs-overload-divider">

<h2 id="preceding-current">preceding</h2>

```kotlin
fun preceding(current: Int): IntArray?
```

Given the current position, returning the start and end of previous element in an array.