Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f74f668b authored by Justin Ghan's avatar Justin Ghan Committed by Automerger Merge Worker
Browse files

Merge "Minor Javadoc improvements" into udc-dev am: 06510096 am: 93cff244

parents 028485d0 93cff244
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -22,6 +22,7 @@ import android.annotation.Nullable;
import android.annotation.TestApi;
import android.annotation.TestApi;
import android.graphics.RectF;
import android.graphics.RectF;
import android.inputmethodservice.InputMethodService;
import android.inputmethodservice.InputMethodService;
import android.os.CancellationSignal;
import android.os.Parcel;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable;
import android.view.MotionEvent;
import android.view.MotionEvent;
@@ -33,18 +34,20 @@ import java.util.concurrent.Executor;
import java.util.function.IntConsumer;
import java.util.function.IntConsumer;


/**
/**
 * Base class for Stylus handwriting gesture.
 * Base class for stylus handwriting gestures.
 *
 * <p>
 * During a stylus handwriting session, user can perform a stylus gesture operation like
 * During a stylus handwriting session, user can perform a stylus gesture operation like
 * {@link SelectGesture}, {@link DeleteGesture}, {@link InsertGesture} on an
 * {@link SelectGesture}, {@link DeleteGesture}, {@link InsertGesture} on an
 * area of text. IME is responsible for listening to Stylus {@link MotionEvent} using
 * area of text. IME is responsible for listening to stylus {@link MotionEvent}s using
 * {@link InputMethodService#onStylusHandwritingMotionEvent} and interpret if it can translate to a
 * {@link InputMethodService#onStylusHandwritingMotionEvent} and interpret if it can translate to a
 * gesture operation.
 * gesture operation.
 * While creating Gesture operations {@link SelectGesture}, {@link DeleteGesture},
 * <p>
 * , {@code Granularity} helps pick the correct granular level of text like word level
 * While creating gesture operations {@link SelectGesture} and {@link DeleteGesture},
 * {@code Granularity} helps pick the correct granular level of text like word level
 * {@link #GRANULARITY_WORD}, or character level {@link #GRANULARITY_CHARACTER}.
 * {@link #GRANULARITY_WORD}, or character level {@link #GRANULARITY_CHARACTER}.
 *
 *
 * @see InputConnection#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)
 * @see InputConnection#performHandwritingGesture(HandwritingGesture, Executor, IntConsumer)
 * @see InputConnection#previewHandwritingGesture(PreviewableHandwritingGesture, CancellationSignal)
 * @see InputMethodService#onStartStylusHandwriting()
 * @see InputMethodService#onStartStylusHandwriting()
 */
 */
public abstract class HandwritingGesture {
public abstract class HandwritingGesture {