The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
VoiceTriggers
Stay organized with collections
Save and categorize content based on your preferences.
Constants for registering Glassware with the main voice menu.
Users can start your Glassware from the main voice menu if you
declare an intent filter that registers for the
com.google.android.glass.action.VOICE_TRIGGER
intent
action in your activity or service.
Glassware can also declare an optional voice input prompt when it launches
to obtain speech input. You can obtain the transcribed text from the
EXTRA_INPUT_SPEECH
intent extra.
For more information on how to use the constants in this class, see the
Starting Glassware
developer guide.
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
Added in API level XE12
public
static
final
String
ACTION_VOICE_TRIGGER
Intent action for a component triggerable by voice.
Constant Value:
"com.google.android.glass.action.VOICE_TRIGGER"
Added in API level XE12
String extra storing the recognized speech.
Constant Value:
"input_speech"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`VoiceTriggers` allows registering Glassware with the main voice menu for users to launch using voice commands."],["Glassware can declare an optional voice input prompt and receive transcribed speech through `EXTRA_INPUT_SPEECH`."],["`ACTION_VOICE_TRIGGER` intent action is used to make a component triggerable by voice."],["Refer to the Starting Glassware developer guide for more details on utilizing these constants."]]],[]]