SelectGesture
class SelectGesture : PreviewableHandwritingGesture, Parcelable
| kotlin.Any | |||
| ↳ | android.view.inputmethod.HandwritingGesture | ||
| ↳ | android.view.inputmethod.PreviewableHandwritingGesture | ||
| ↳ | android.view.inputmethod.SelectGesture | ||
A sub-class of HandwritingGesture for selecting an area of text using single rectangle. This class holds the information required for selection of text in toolkit widgets like TextView. 
Note: This selects all text within the given area. To select a range between two areas, use SelectRangeGesture.
Summary
| Nested classes | |
|---|---|
| Builder for  | |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Int | Returns Granular level on which text should be operated. | 
| RectF | Returns the Selection area  | 
| Int | hashCode() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Used to package this object into a  | 
| Properties | |
|---|---|
| static Parcelable.Creator<SelectGesture!> | Used to make this class parcelable. | 
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
getGranularity
fun getGranularity(): Int
Returns Granular level on which text should be operated.
| Return | |
|---|---|
| Int | Value is android.view.inputmethod.HandwritingGesture#GRANULARITY_CHARACTER, orandroid.view.inputmethod.HandwritingGesture#GRANULARITY_WORD | 
See Also
getSelectionArea
fun getSelectionArea(): RectF
Returns the Selection area RectF in screen coordinates. Getter for selection area set with Builder.setSelectionArea(RectF).
| Return | |
|---|---|
| RectF | This value cannot be null. | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Used to package this object into a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: The Parcelto be written. This value cannot benull. | 
| flags | Int: The flags used for parceling. | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<SelectGesture!>
Used to make this class parcelable.
