# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# GestureStore

`public class GestureStore`
`extends Object` ``

java.lang.Object
↳ | android.gesture.GestureStore

GestureLibrary maintains gesture examples and makes predictions on a new gesture

## Summary

### Constants
`int` | `ORIENTATION_INVARIANT`
`int` | `ORIENTATION_SENSITIVE`
`int` | `SEQUENCE_INVARIANT`
`int` | `SEQUENCE_SENSITIVE`

### Public constructors
`GestureStore()`

### Public methods
`void` | `addGesture(String entryName, Gesture gesture)` Add a gesture for the entry
`Set<String>` | `getGestureEntries()` Get all the gesture entry names in the library
`ArrayList<Gesture>` | `getGestures(String entryName)` Get all the gestures of an entry
`int` | `getOrientationStyle()`
`int` | `getSequenceType()`
`boolean` | `hasChanged()`
`void` | `load(InputStream stream)` Load the gesture library
`void` | `load(InputStream stream, boolean closeStream)`
`ArrayList<Prediction>` | `recognize(Gesture gesture)` Recognize a gesture
`void` | `removeEntry(String entryName)` Remove a entry of gestures
`void` | `removeGesture(String entryName, Gesture gesture)` Remove a gesture from the library.
`void` | `save(OutputStream stream)` Save the gesture library
`void` | `save(OutputStream stream, boolean closeStream)`
`void` | `setOrientationStyle(int style)` Specify how the gesture library will handle orientation.
`void` | `setSequenceType(int type)`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### ORIENTATION_INVARIANT

    public static final int ORIENTATION_INVARIANT

Constant Value: 1 (0x00000001)

### ORIENTATION_SENSITIVE

    public static final int ORIENTATION_SENSITIVE

Constant Value: 2 (0x00000002)

### SEQUENCE_INVARIANT

    public static final int SEQUENCE_INVARIANT

Constant Value: 1 (0x00000001)

### SEQUENCE_SENSITIVE

    public static final int SEQUENCE_SENSITIVE

Constant Value: 2 (0x00000002)

## Public constructors

### GestureStore

    public GestureStore ()

## Public methods

### addGesture

    public void addGesture (String entryName,
                    Gesture gesture)

Add a gesture for the entry

Parameters
`entryName` | `String`: entry name

### getGestureEntries

    public Set<String> getGestureEntries ()

Get all the gesture entry names in the library

Returns
`Set<String>` | a set of strings

### getGestures

    public ArrayList<Gesture> getGestures (String entryName)

Get all the gestures of an entry

Returns
`ArrayList<Gesture>` | the list of gestures that is under this name

### getOrientationStyle

    public int getOrientationStyle ()

Returns
`int` |

### getSequenceType

    public int getSequenceType ()

Returns
`int` | SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE

### hasChanged

    public boolean hasChanged ()

Returns
`boolean` |

### load

    public void load (InputStream stream)

Load the gesture library

Parameters
`stream` | `InputStream`

Throws
`IOException` |

### load

    public void load (InputStream stream,
                    boolean closeStream)

Parameters
`stream` | `InputStream`
`closeStream` | `boolean`

Throws
`IOException` |

### recognize

    public ArrayList<Prediction> recognize (Gesture gesture)

Recognize a gesture

Parameters
`gesture` | `Gesture`: the query

Returns
`ArrayList<Prediction>` | a list of predictions of possible entries for a given gesture

### removeEntry

    public void removeEntry (String entryName)

Remove a entry of gestures

Parameters
`entryName` | `String`: the entry name

### removeGesture

    public void removeGesture (String entryName,
                    Gesture gesture)

Remove a gesture from the library. If there are no more gestures for the given entry, the gesture entry will be removed.

Parameters
`entryName` | `String`: entry name

### save

    public void save (OutputStream stream)

Save the gesture library

Parameters
`stream` | `OutputStream`

Throws
`IOException` |

### save

    public void save (OutputStream stream,
                    boolean closeStream)

Parameters
`stream` | `OutputStream`
`closeStream` | `boolean`

Throws
`IOException` |

### setOrientationStyle

    public void setOrientationStyle (int style)

Specify how the gesture library will handle orientation. Use ORIENTATION_INVARIANT or ORIENTATION_SENSITIVE

### setSequenceType

    public void setSequenceType (int type)

Parameters
`type` | `int`: SEQUENCE_INVARIANT or SEQUENCE_SENSITIVE

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*