waud.js
API Docs for v0.0.4
Show:

Vibration

Defined in: src/Vibration.hx:16

Summary

Class to vibrate the device.

Constructor

Vibration

Defined in src/Vibration.hx:16

Syntax

Vibration

()

Summary

Example:

    var speech = new Speech();
    vibration.startRecognition(onResult);

  function onResult(results) {
        trace(results[0][0].transcript);
  }

Methods

addGrammar

Defined in src/Speech.hx:46

Syntax

addGrammar

(
  • grammar
)

Summary

Function to add grammar string.

Parameters:

start

Defined in src/Vibration.hx:30

Syntax

start

(
  • [duration = 1000]
)

Summary

Function to start vibration.

Parameters:

  • [duration = 1000] Int optional

startPattern

Defined in src/Vibration.hx:40

Syntax

startPattern

(
  • pattern
)

Summary

Function to start vibration pattern.

Parameters:

  • pattern Array

Example:

  vibration.startPattern([200, 100, 300, 50, 200]);

startRecognition

Defined in src/Speech.hx:56

Syntax

startRecognition

(
  • callback
  • [endCallback]
  • [noMatchCallback]
  • [errorCallback]
)

Summary

Function to start speech recognition.

Parameters:

stop

Defined in src/Vibration.hx:52

Syntax

stop

()

Summary

Function to stop vibration.

Properties

isSupported

Defined in src/Speech.hx:12

Syntax

isSupported

Bool

Summary

Support check.

isSupported

Defined in src/Vibration.hx:6

Syntax

isSupported

Bool

Summary

Support check.