public class

TouchscreenGesture

extends Object
implements Parcelable
java.lang.Object
   ↳ lineageos.hardware.TouchscreenGesture

Class Overview

Touchscreen gestures API A device may implement several touchscreen gestures for use while the display is turned off, such as drawing alphabets and shapes. These gestures can be interpreted by userspace to activate certain actions and launch certain apps, such as to skip music tracks, to turn on the flashlight, or to launch the camera app. This *should always* be supported by the hardware directly. A lot of recent touch controllers have a firmware option for this. This API provides support for enumerating the gestures supported by the touchscreen. A TouchscreenGesture is referenced by it's identifier and carries an associated name (up to the user to translate this value).

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public final int id
public final int keycode
public final String name
Public Constructors
TouchscreenGesture(int id, String name, int keycode)
Public Methods
int describeContents()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public final int id

added in API level 8

public final int keycode

added in API level 8

public final String name

added in API level 8

Public Constructors

public TouchscreenGesture (int id, String name, int keycode)

added in API level 8

Parameters
id int
name String
keycode int

Public Methods

public int describeContents ()

added in API level 8

Returns
int

public void writeToParcel (Parcel parcel, int flags)

added in API level 8

Parameters
parcel Parcel
flags int