The Glass Explorer Edition SDK is deprecated. This documentation remains as a historical reference.
Intents
Stay organized with collections
Save and categorize content based on your preferences.
Added in API level XE18.1
Definition of platform intent actions and extras.
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 XE18.1
public
static
final
String
ACTION_ON_HEAD_STATE_CHANGED
Broadcast action: sent when the user starts or stops wearing the device.
This is a protected intent that can only be sent by the system.
Constant Value:
"com.google.android.glass.action.ON_HEAD_STATE_CHANGED"
Added in API level XE18.1
Boolean extra denoting whether the user is wearing the device.
Constant Value:
"is_on_head"
Added in API level XE18.1
String extra holding the file path of the picture.
Constant Value:
"picture_file_path"
Added in API level XE18.1
String extra holding the file path of the thumbnail representing a captured picture or video.
Constant Value:
"thumbnail_file_path"
Added in API level XE18.1
String extra holding the file path of the video.
Constant Value:
"video_file_path"
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."],[[["This documentation details platform intent actions and extras added in API level XE18.1."],["`ACTION_ON_HEAD_STATE_CHANGED` is a system-sent broadcast triggered when the user wears or removes the device, indicated by the boolean extra `EXTRA_IS_ON_HEAD`."],["Extras like `EXTRA_PICTURE_FILE_PATH`, `EXTRA_THUMBNAIL_FILE_PATH`, and `EXTRA_VIDEO_FILE_PATH` provide file paths for captured media."],["These constants facilitate interaction with captured pictures and videos, as well as device-wearing status."]]],[]]