Page Summary
-
The content defines platform intent actions and extras relevant to the device.
-
ACTION_ON_HEAD_STATE_CHANGEDis a system broadcast sent when the user wears or removes the device. -
EXTRA_IS_ON_HEADis a boolean extra indicating if the device is being worn. -
Extras like
EXTRA_PICTURE_FILE_PATH,EXTRA_THUMBNAIL_FILE_PATH, andEXTRA_VIDEO_FILE_PATHprovide file paths for captured media. -
These definitions were added in API level XE18.1.
Definition of platform intent actions and extras.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ACTION_ON_HEAD_STATE_CHANGED | Broadcast action: sent when the user starts or stops wearing the device. | |||||||||
| String | EXTRA_IS_ON_HEAD | Boolean extra denoting whether the user is wearing the device. | |||||||||
| String | EXTRA_PICTURE_FILE_PATH | String extra holding the file path of the picture. | |||||||||
| String | EXTRA_THUMBNAIL_FILE_PATH | String extra holding the file path of the thumbnail representing a captured picture or video. | |||||||||
| String | EXTRA_VIDEO_FILE_PATH | String extra holding the file path of the video. | |||||||||
| Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constants
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.
See Also
public static final String EXTRA_IS_ON_HEAD
Boolean extra denoting whether the user is wearing the device.
See Also
public static final String EXTRA_PICTURE_FILE_PATH
String extra holding the file path of the picture.
See Also
public static final String EXTRA_THUMBNAIL_FILE_PATH
String extra holding the file path of the thumbnail representing a captured picture or video.
public static final String EXTRA_VIDEO_FILE_PATH
String extra holding the file path of the video.