Added in API level 34

DeleteRangeGesture


class DeleteRangeGesture : PreviewableHandwritingGesture, Parcelable
kotlin.Any
   ↳ android.view.inputmethod.HandwritingGesture
   ↳ android.view.inputmethod.PreviewableHandwritingGesture
   ↳ android.view.inputmethod.DeleteRangeGesture

A subclass of HandwritingGesture for deleting a range of text by defining start and end rectangles. This can be useful when the range cannot be defined with a single rectangle. This class holds the information required for deletion of text in toolkit widgets like TextView.

Note: this deletes text within a range between two given areas. To delete all text within a single area, use DeleteGesture.

Summary

Nested classes

Builder for DeleteRangeGesture.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

RectF

Returns the Deletion end area RectF in screen coordinates.

RectF

Returns the Deletion start area RectF in screen coordinates.

Int

Returns Granular level on which text should be operated.

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Used to package this object into a Parcel.

Properties
static Parcelable.Creator<DeleteRangeGesture!>

Used to make this class parcelable.

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 34
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getDeletionEndArea

Added in API level 34
fun getDeletionEndArea(): RectF

Returns the Deletion end area RectF in screen coordinates. Getter for deletion area set with Builder.setDeletionEndArea(RectF).

Return
RectF This value cannot be null.

getDeletionStartArea

Added in API level 34
fun getDeletionStartArea(): RectF

Returns the Deletion start area RectF in screen coordinates. Getter for deletion area set with Builder.setDeletionStartArea(RectF).

Return
RectF This value cannot be null.

getGranularity

Added in API level 34
fun getGranularity(): Int

Returns Granular level on which text should be operated.

Return
Int Value is android.view.inputmethod.HandwritingGesture#GRANULARITY_CHARACTER, or android.view.inputmethod.HandwritingGesture#GRANULARITY_WORD

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Used to package this object into a Parcel.

Parameters
dest Parcel: The Parcel to be written. This value cannot be null.
flags Int: The flags used for parceling.

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<DeleteRangeGesture!>

Used to make this class parcelable.