Builder
class Builder : TextClassifierEvent.Builder<TextClassifierEvent.TextSelectionEvent.Builder!>
Builder class for TextSelectionEvent.
Summary
| Public constructors | |
|---|---|
| Creates a builder for building  | |
| Public methods | |
|---|---|
| TextClassifierEvent.TextSelectionEvent | build()Builds and returns a  | 
| TextClassifierEvent.TextSelectionEvent.Builder | setRelativeSuggestedWordEndIndex(relativeSuggestedWordEndIndex: Int)Sets the relative word (exclusive) index of the end of the smart selection. | 
| TextClassifierEvent.TextSelectionEvent.Builder | setRelativeSuggestedWordStartIndex(relativeSuggestedWordStartIndex: Int)Sets the relative word index of the start of the smart selection. | 
| TextClassifierEvent.TextSelectionEvent.Builder | setRelativeWordEndIndex(relativeWordEndIndex: Int)Sets the relative word (exclusive) index of the end of the selection. | 
| TextClassifierEvent.TextSelectionEvent.Builder | setRelativeWordStartIndex(relativeWordStartIndex: Int)Sets the relative word index of the start of the selection. | 
| Inherited functions | |
|---|---|
Public constructors
Builder
Builder(eventType: Int)
Creates a builder for building TextSelectionEvents.
Public methods
build
fun build(): TextClassifierEvent.TextSelectionEvent
Builds and returns a TextSelectionEvent.
| Return | |
|---|---|
| TextClassifierEvent.TextSelectionEvent | This value cannot be null. | 
setRelativeSuggestedWordEndIndex
fun setRelativeSuggestedWordEndIndex(relativeSuggestedWordEndIndex: Int): TextClassifierEvent.TextSelectionEvent.Builder
Sets the relative word (exclusive) index of the end of the smart selection.
| Return | |
|---|---|
| TextClassifierEvent.TextSelectionEvent.Builder | This value cannot be null. | 
setRelativeSuggestedWordStartIndex
fun setRelativeSuggestedWordStartIndex(relativeSuggestedWordStartIndex: Int): TextClassifierEvent.TextSelectionEvent.Builder
Sets the relative word index of the start of the smart selection.
| Return | |
|---|---|
| TextClassifierEvent.TextSelectionEvent.Builder | This value cannot be null. | 
setRelativeWordEndIndex
fun setRelativeWordEndIndex(relativeWordEndIndex: Int): TextClassifierEvent.TextSelectionEvent.Builder
Sets the relative word (exclusive) index of the end of the selection.
| Return | |
|---|---|
| TextClassifierEvent.TextSelectionEvent.Builder | This value cannot be null. | 
setRelativeWordStartIndex
fun setRelativeWordStartIndex(relativeWordStartIndex: Int): TextClassifierEvent.TextSelectionEvent.Builder
Sets the relative word index of the start of the selection.
| Return | |
|---|---|
| TextClassifierEvent.TextSelectionEvent.Builder | This value cannot be null. | 
