Builder
class Builder
kotlin.Any | |
↳ | android.view.inputmethod.InsertModeGesture.Builder |
Builder for InsertModeGesture
. This class is not designed to be thread-safe.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
InsertModeGesture |
build() Returns |
InsertModeGesture.Builder |
setCancellationSignal(cancellationSignal: CancellationSignal) Sets the |
InsertModeGesture.Builder |
setFallbackText(fallbackText: String?) Set fallback text that will be committed at current cursor position if there is no applicable text beneath the area of gesture. |
InsertModeGesture.Builder |
setInsertionPoint(point: PointF) Sets the insertion point (in screen coordinates) where space will be created for additional text to be inserted. |
Public constructors
Builder
Builder()
Public methods
build
fun build(): InsertModeGesture
Returns InsertModeGesture
using parameters in this InsertModeGesture.Builder
.
Return | |
---|---|
InsertModeGesture |
This value cannot be null . |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if one or more positional parameters are not specified. |
setCancellationSignal
fun setCancellationSignal(cancellationSignal: CancellationSignal): InsertModeGesture.Builder
Sets the CancellationSignal
used to cancel the ongoing gesture.
Parameters | |
---|---|
cancellationSignal |
CancellationSignal: signal to cancel an ongoing gesture. This value cannot be null . |
Return | |
---|---|
InsertModeGesture.Builder |
This value cannot be null . |
setFallbackText
fun setFallbackText(fallbackText: String?): InsertModeGesture.Builder
Set fallback text that will be committed at current cursor position if there is no applicable text beneath the area of gesture.
Parameters | |
---|---|
fallbackText |
String?: text to set |
Return | |
---|---|
InsertModeGesture.Builder |
This value cannot be null . |
setInsertionPoint
fun setInsertionPoint(point: PointF): InsertModeGesture.Builder
Sets the insertion point (in screen coordinates) where space will be created for additional text to be inserted.
Parameters | |
---|---|
point |
PointF: This value cannot be null . |
Return | |
---|---|
InsertModeGesture.Builder |
This value cannot be null . |