# BatchListener

Implements EasyScriptEventListener

This class is used to collect and store events so that we can give an entire signature at once without callers needing to implement an event listener.

package | Application

### Methods

## Marks a signature canceled and done.

    cancel() : mixed

### Response

`mixed`

## Captures a card swipe.

    cardSwipe(\com\scriptel\CardSwipeswipe) : mixed

### Arguments

#### swipe

`\com\scriptel\CardSwipe`

### Response

`mixed`

## Marks a signature complete.

    endOfSignature() : mixed

### Response

`mixed`

## Gets the meta data of the signature.

    getMetaData() : mixed

### Response

`mixed`

## This method gets the list of strokes

    getStrokes() : mixed

### Response

`mixed`

## Gets a card swipe if one was found.

    getSwipe() : mixed

### Response

`mixed`

## Gets whether or not this signature was canceled.

    isCanceled() : bool

### Response

`bool`

## Gets whether or not this signature is complete (canceled or otherwise).

    isDone() : bool

### Response

`bool`

## Adds a new stroke to the stack.

    newStroke() : mixed

### Response

`mixed`

## Gets a coordinate that will be added to the current stroke.

    receiveCoordinate(\com\scriptel\Coordinatecoordinate) : mixed

### Arguments

#### coordinate

`\com\scriptel\Coordinate`

### Response

`mixed`

## Gets the signature metadata.

    signatureMetaData(\com\scriptel\SignatureMetaDatametaData) : mixed

### Arguments

#### metaData

`\com\scriptel\SignatureMetaData`

### Response

`mixed`

### Properties

## Contains a list of strokes

    strokes :

var | stroke[]

## Contains a list of coordinates.

    stroke :

var | Coordinate[]

## Whether or not this signature is complete (canceled or otherwise).

    done : bool

var |

### Type(s)

`bool`

## Whether or not this signature was canceled.

    canceled : bool

var |

### Type(s)

`bool`

## A card swipe, if one is detected.

    swipe : \com\scriptel\CardSwipe

var |

### Type(s)

`CardSwipe`

## Metadata from the signature.

    metaData : \com\scriptel\SignatureMetaData

var |

### Type(s)

`SignatureMetaData`