Skip to content

Most visited

Recently visited

navigation

GestureLibrary

public abstract class GestureLibrary
extends Object

java.lang.Object
   ↳ android.gesture.GestureLibrary


Summary

Fields

protected final GestureStore mStore

Protected constructors

GestureLibrary()

Public methods

void addGesture(String entryName, Gesture gesture)
Set<String> getGestureEntries()
ArrayList<Gesture> getGestures(String entryName)
int getOrientationStyle()
int getSequenceType()
boolean isReadOnly()
abstract boolean load()
ArrayList<Prediction> recognize(Gesture gesture)
void removeEntry(String entryName)
void removeGesture(String entryName, Gesture gesture)
abstract boolean save()
void setOrientationStyle(int style)
void setSequenceType(int type)

Inherited methods

From class java.lang.Object

Fields

mStore

added in API level 4
GestureStore mStore

Protected constructors

GestureLibrary

added in API level 4
GestureLibrary ()

Public methods

addGesture

added in API level 4
void addGesture (String entryName, 
                Gesture gesture)

Parameters
entryName String

gesture Gesture

getGestureEntries

added in API level 4
Set<String> getGestureEntries ()

Returns
Set<String>

getGestures

added in API level 4
ArrayList<Gesture> getGestures (String entryName)

Parameters
entryName String

Returns
ArrayList<Gesture>

getOrientationStyle

added in API level 4
int getOrientationStyle ()

Returns
int

getSequenceType

added in API level 4
int getSequenceType ()

Returns
int

isReadOnly

added in API level 4
boolean isReadOnly ()

Returns
boolean

load

added in API level 4
boolean load ()

Returns
boolean

recognize

added in API level 4
ArrayList<Prediction> recognize (Gesture gesture)

Parameters
gesture Gesture

Returns
ArrayList<Prediction>

removeEntry

added in API level 4
void removeEntry (String entryName)

Parameters
entryName String

removeGesture

added in API level 4
void removeGesture (String entryName, 
                Gesture gesture)

Parameters
entryName String

gesture Gesture

save

added in API level 4
boolean save ()

Returns
boolean

setOrientationStyle

added in API level 4
void setOrientationStyle (int style)

Parameters
style int

setSequenceType

added in API level 4
void setSequenceType (int type)

Parameters
type int

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)