# PreviewableHandwritingGesture

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Inherited Constants](https://developer.android.com/reference/android/view/inputmethod/PreviewableHandwritingGesture#inhconstants)\|[Inherited Methods](https://developer.android.com/reference/android/view/inputmethod/PreviewableHandwritingGesture#inhmethods)  

# PreviewableHandwritingGesture

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/view/inputmethod/PreviewableHandwritingGesture "View this page in Kotlin")\|Java

`
public


abstract
class
PreviewableHandwritingGesture
`  
`


``

extends `[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)`


``


`

|---|---|--------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.view.inputmethod.HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture) ||
|   | ↳ | android.view.inputmethod.PreviewableHandwritingGesture |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known direct subclasses [DeleteGesture](https://developer.android.com/reference/android/view/inputmethod/DeleteGesture),[DeleteRangeGesture](https://developer.android.com/reference/android/view/inputmethod/DeleteRangeGesture),[SelectGesture](https://developer.android.com/reference/android/view/inputmethod/SelectGesture),[SelectRangeGesture](https://developer.android.com/reference/android/view/inputmethod/SelectRangeGesture) |-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DeleteGesture](https://developer.android.com/reference/android/view/inputmethod/DeleteGesture)           | A sub-class of[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)for deleting an area of text using single rectangle.               | | [DeleteRangeGesture](https://developer.android.com/reference/android/view/inputmethod/DeleteRangeGesture) | A subclass of[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)for deleting a range of text by defining start and end rectangles.  | | [SelectGesture](https://developer.android.com/reference/android/view/inputmethod/SelectGesture)           | A sub-class of[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)for selecting an area of text using single rectangle.              | | [SelectRangeGesture](https://developer.android.com/reference/android/view/inputmethod/SelectRangeGesture) | A subclass of[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)for selecting a range of text by defining start and end rectangles. | |

<br />

*** ** * ** ***

A[HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)that can be[previewed](https://developer.android.com/reference/android/view/inputmethod/InputConnection#previewHandwritingGesture(android.view.inputmethod.PreviewableHandwritingGesture,%20android.os.CancellationSignal)). Note: An editor might only implement a subset of gesture previews and declares the supported ones via[EditorInfo.getSupportedHandwritingGesturePreviews](https://developer.android.com/reference/android/view/inputmethod/EditorInfo#getSupportedHandwritingGesturePreviews()).  
**See also:**

- [EditorInfo.setSupportedHandwritingGesturePreviews(Set)](https://developer.android.com/reference/android/view/inputmethod/EditorInfo#setSupportedHandwritingGesturePreviews(java.util.Set<java.lang.Class<?%20extends%20android.view.inputmethod.PreviewableHandwritingGesture>>))
- [EditorInfo.getSupportedHandwritingGesturePreviews()](https://developer.android.com/reference/android/view/inputmethod/EditorInfo#getSupportedHandwritingGesturePreviews())

## Summary

|                                                                                                                                                                                                                                                                                                                                         ### Inherited constants                                                                                                                                                                                                                                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class[android.view.inputmethod.HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture) |-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [GRANULARITY_CHARACTER](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture#GRANULARITY_CHARACTER) Operate on text per character basis. | | `int` | [GRANULARITY_WORD](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture#GRANULARITY_WORD) Operate text per word basis.                   | |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.view.inputmethod.HandwritingGesture](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture)` ` |-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` final `[String](https://developer.android.com/reference/java/lang/String) | ` `[getFallbackText](https://developer.android.com/reference/android/view/inputmethod/HandwritingGesture#getFallbackText())`() ` The fallback text that will be committed at current cursor position if there is no applicable text beneath the area of gesture. | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||