Build 1.0_r1(from source)

android.speech.recognition
Class SrecGrammar.Item

java.lang.Object
  extended by android.speech.recognition.SrecGrammar.Item
Enclosing interface:
SrecGrammar

public static class SrecGrammar.Item
extends Object

SrecGrammar Item


Field Summary
 SlotItem _item
           
 String _semanticMeaning
           
 int _weight
           
 
Constructor Summary
SrecGrammar.Item(SlotItem item, int weight, String semanticMeaning)
          Creates a grammar item.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_item

public SlotItem _item

_weight

public int _weight

_semanticMeaning

public String _semanticMeaning
Constructor Detail

SrecGrammar.Item

public SrecGrammar.Item(SlotItem item,
                        int weight,
                        String semanticMeaning)
                 throws IllegalArgumentException
Creates a grammar item.

Parameters:
item - the Slotitem.
weight - the weight of the item. Smaller values are more likely to get recognized. This should be >= 0.
semanticMeaning - the value that will be returned if this item is recognized.
Throws:
IllegalArgumentException - if item or semanticMeaning are null; if semanticMeaning is empty."

Build 1.0_r1(from source)

Please submit a feedback, bug or feature