SmartEyeglass SDK
public static interface

SmartEyeglassControl.Intents

Class Overview

Intents sent between a SmartEyeglass app and the HostApp,and related constants.. All intents require the "com.sony.smarteyeglass.permission.SMARTEYEGLASS" permission in the app's Android manifest. Camera and voice-to-text intents require additional specific permissions as noted.

Summary

Constants
java.lang.String CONTROL_API_VERSION_CONFIRM_INTENT Sent from app to HostApp to request the current SmartEyeglass API version.
java.lang.String CONTROL_TEXT_SHOW_INTENT Sent from app to HostApp to show a text view on the accessory.
java.lang.String CONTROL_DIALOG_OPEN_INTENT Sent from app to HostApp to show a popup message.
java.lang.String CONTROL_DIALOG_CLOSED_EVENT_INTENT Sent by HostApp when a popup dialog is closed by user action or after a timeout.
java.lang.String CONTROL_VOICE_TEXT_INPUT_ENABLE_INTENT Sent from app to HostApp to initiate a voice-to-text input operation.
java.lang.String CONTROL_VOICE_TEXT_INPUT_NOTIFY_RECOGNIZED_TEXT_EVENT_INTENT Sent by HostApp when a voice-to-text input operation has been completed.
java.lang.String CONTROL_POWER_MODE_SET_MODE_INTENT Sent from app to HostApp to change the power mode.
java.lang.String CONTROL_POWER_MODE_NOTIFY_MODE_EVENT_INTENT Sent by HostApp when the power mode has been changed.
java.lang.String CONTROL_SAFE_DISPLAY_MODE_SET_MODE_INTENT Sent from app to HostApp to change the safe display mode.
java.lang.String CONTROL_SCREEN_DEPTH_SET_DEPTH_INTENT Sent from app to the HostApp to change the screen depth setting.
java.lang.String CONTROL_CAMERA_SET_MODE_INTENT Sent from app to the HostApp to change the camera mode.
java.lang.String CONTROL_CAMERA_START_INTENT Sent from app to HostApp to initiate the camera image-capture operation.
java.lang.String CONTROL_CAMERA_CAPTURE_STILL_INTENT Sent from app to HostApp to take a photo.
java.lang.String CONTROL_CAMERA_STOP_INTENT Sent from app to HostApp to stop camera function.
java.lang.String CONTROL_CAMERA_NOTIFY_CAPTURED_FILE_EVENT_INTENT Sent by HostApp when a record-to-file operation has finished.
java.lang.String CONTROL_CAMERA_NOTIFY_ERROR_EVENT_INTENT Sent by HostApp if starting the camera-recording operation throws an error.
java.lang.String CONTROL_AR_SET_MODE_INTENT Sent from app to HostApp to change the AR rendering mode.
java.lang.String CONTROL_AR_CHANGE_CYLINDRICAL_VERTICAL_RANGE_INTENT Send from app to HostApp to change the cylindrical height in AR mode.
java.lang.String CONTROL_AR_ENABLE_ANIMATION_REQUEST_INTENT Sent from app to HostApp to initiate AR animation.
java.lang.String CONTROL_AR_ENABLE_ANIMATION_RESPONSE_INTENT Sent by HostApp in response to CONTROL_AR_ENABLE_ANIMATION_REQUEST_INTENT.
java.lang.String CONTROL_AR_DISABLE_ANIMATION_REQUEST_INTENT Sent from app to HostApp to terminate an animation.
java.lang.String CONTROL_AR_DISABLE_ANIMATION_RESPONSE_INTENT Sent by HostApp in response to CONTROL_AR_DISABLE_ANIMATION_REQUEST_INTENT.
java.lang.String CONTROL_AR_REGISTER_OBJECT_REQUEST_INTENT Sent from app to HostApp to register a new object in AR mode.
java.lang.String CONTROL_AR_REGISTER_OBJECT_RESPONSE_INTENT Sent by HostApp in response to CONTROL_AR_REGISTER_OBJECT_REQUEST_INTENT.
java.lang.String CONTROL_AR_GET_OBJECT_REQUEST_INTENT Sent by HostApp to request image data to render.
java.lang.String CONTROL_AR_GET_OBJECT_RESPONSE_INTENT Sent from app to HostApp in response to CONTROL_AR_GET_OBJECT_REQUEST_INTENT.
java.lang.String CONTROL_AR_CHANGE_OBJECT_ORDER_INTENT Sent from app to HostApp to change the rendering order of an object.
java.lang.String CONTROL_AR_MOVE_OBJECT_INTENT Sent from app to HostApp to change the position of an object.
java.lang.String CONTROL_AR_DELETE_OBJECT_INTENT Sent from app to HostApp to delete a rendering object.
java.lang.String CONTROL_DISPLAY_NOTIFY_STATUS_EVENT_INTENT Sent by HostApp when the display is turned on or off, either manually by the user or automatically.
java.lang.String CONTROL_DISPLAY_DATA_RESULT_INTENT Sent from HostApp to app when display processing is completed, in response to CONTROL_DISPLAY_DATA_INTENT.
java.lang.String CONTROL_AR_ANIMATION_RESULT_INTENT Sent from HostApp to app when display processing of an AR animation object is completed.
java.lang.String CONTROL_BATTERY_GET_LEVEL_REQUEST_INTENT Sent from app to HostApp to request the battery status.
java.lang.String CONTROL_BATTERY_GET_LEVEL_RESPONSE_INTENT Sent by HostApp in response to a request for battery status.
java.lang.String CONTROL_TELEPHONY_GET_MODE_REQUEST_INTENT Sent from app to HostApp to request the status of the telephony function.
java.lang.String CONTROL_TELEPHONY_GET_MODE_RESPONSE_INTENT Sent by HostApp in response to a request for the status of the telephony function.
java.lang.String CONTROL_SOUND_EFFECT_SET_MODE_INTENT Sent from app to HostApp to enable or disable the sound effect that provides feedback for user input actions on the controller (key press or touch pad action).
java.lang.String CONTROL_STANDBY_CONFIRM_REQUEST_INTENT Sent by HostApp to request confirmation when the standby mode is changed.
java.lang.String CONTROL_STANDBY_CONFIRM_RESPONSE_INTENT Sent from app to HostApp to provide confirmation of a change in standby mode.
java.lang.String CONTROL_STANDBY_NOTIFY_CONDITION_EVENT_INTENT Sent by HostApp to request the current standby-mode status.
java.lang.String CONTROL_STANDBY_ENTER_INTENT Sent from app to HostApp in response to a request for the current standby-mode status.
java.lang.String EXTRA_VERSION_DATA Intent-extra, a SmartEyeglass API version number.
java.lang.String EXTRA_DATA_IS_RAW_FORMAT Intent-extra, whether data can be sent to the accessory in a raw format.
java.lang.String EXTRA_DIALOG_MODE Intent-extra, a Dialog message mode.
java.lang.String EXTRA_DIALOG_TITLE Intent-extra, a Dialog title.
java.lang.String EXTRA_DIALOG_MESSAGE Intent-extra, a Dialog message.
java.lang.String EXTRA_DIALOG_BUTTONS Intent-extra, user-defined buttons for a Dialog.
java.lang.String EXTRA_CAMERA_MODE Intent-extra, a camera capture mode.
java.lang.String EXTRA_CAMERA_JPEG_QUALITY Intent-extra, the JPEG quality setting for the camera.
java.lang.String EXTRA_CAMERA_RESOLUTION Intent-extra, the resolution setting for the camera.
java.lang.String EXTRA_CAMERA_VIDEO_SOCKET_NAME Intent-extra, the name of the Android Local Server Socket that is waiting for a connection from HostApp to communicate picture data from the camera.
java.lang.String EXTRA_IMAGE_WIDTH Intent-extra, the width of a static image in pixels.
java.lang.String EXTRA_IMAGE_HEIGHT Intent-extra, the height of a static image in pixels.
java.lang.String EXTRA_LAYER_TRANSITION_EFFECT_TYPE Intent-extra, the direction of a screen-layer animation.
java.lang.String EXTRA_POWER_MODE Intent-extra, a power mode.
java.lang.String EXTRA_DISPLAY_STATUS Intent-extra, the display status.
java.lang.String EXTRA_SAFE_DISPLAY_MODE Intent-extra, the safe display mode.
java.lang.String EXTRA_TELEPHONY_MODE Intent-extra, the telephony function status.
java.lang.String EXTRA_DIALOG_SELECTED_BUTTON_INDEX Intent-extra, the selected dialog button index.
java.lang.String EXTRA_SCREEN_DEPTH Intent-extra, the screen depth position.
java.lang.String EXTRA_BATTERY_LEVEL Intent-extra, the battery status.
java.lang.String EXTRA_SOUND_EFFECT_MODE Intent-extra, the sound effect setting.
java.lang.String EXTRA_STANDBY_CONDITION Intent-extra, the standby mode setting.
java.lang.String EXTRA_STANDBY_CONFIRMED_RESULT Intent-extra, the standby confirm result.
int STANDBY_CONFIRMED_RESULT_NG Standby mode changes confirm result NG.
int STANDBY_CONFIRMED_RESULT_OK Standby mode changes confirm result OK.
int DIALOG_MODE_TIMEOUT Dialog closes automatically after 5 seconds.
int DIALOG_MODE_OK Dialog requires a confirmation to close.
int DIALOG_MODE_USER_DEFINED Dialog with user-defined message and buttons, requires a confirmation to close.
int CAMERA_JPEG_QUALITY_STANDARD Standard JPEG Quality.
int CAMERA_JPEG_QUALITY_FINE Fine JPEG Quality.
int CAMERA_JPEG_QUALITY_SUPER_FINE Super-fine JPEG Quality.
int CAMERA_RESOLUTION_3M 3 Megapixel camera resolution.
int CAMERA_RESOLUTION_1M 1 Megapixel camera resolution.
int CAMERA_RESOLUTION_VGA VGA camera resolution.
int CAMERA_RESOLUTION_QVGA QVGA camera resolution.
int CAMERA_MODE_STILL Camera takes a still picture and saves the file using a specified Socket.
int CAMERA_MODE_STILL_TO_FILE Camera takes a still picture and saves the file using a specified URI.
int CAMERA_MODE_JPG_STREAM_LOW_RATE Camera takes still pictures continuously at 7.5fps.
int CAMERA_MODE_JPG_STREAM_HIGH_RATE Camera takes still pictures continuously at 15fps.
int POWER_MODE_HIGH Power mode constant value for high bandwidth (WiFi is used).
int POWER_MODE_NORMAL Power mode constant value for normal bandwidth (Bluetooth is used).
int SAFE_DISPLAY_MODE_NONE Safe display mode is off.
int SAFE_DISPLAY_MODE_1 A Safe display mode is on.
int DISPLAY_STATUS_OFF Display is off.
int DISPLAY_STATUS_ON Display is on.
int SOUND_EFFECT_OFF Sound effect feedback for the controller is off.
int SOUND_EFFECT_ON Sound effect feedback for the controller is on.
int STANDBY_MODE_OFF Standby mode is off.
int STANDBY_MODE_ON Standby mode is on.
int TELEPHONY_MODE_BT_HEADSET_DISABLE The telephony function is disabled in the BT Headset.
int TELEPHONY_MODE_BT_HEADSET_ENABLE The telephony function is enabled in the BT Headset.
int LAYER_TRANSITION_MOVE_LOWER_LAYER The layer transition animation type for moving down to a lower layer.
int LAYER_TRANSITION_MOVE_UPPER_LAYER The layer transition animation type for moving up to an higher layer.
int ERROR_INVALID_PARAMETER Error code returned when an invalid parameter is passed.
int ERROR_FILE_ACCESS Error code returned when file cannot be accessed or the file path is invalid.
int ERROR_CAPTURE Error code returned when the image-capture operation failed.
java.lang.String EXTRA_DISPLAY_DATA_TRANSACTION_NUMBER Intent-extra, the transaction number.
java.lang.String EXTRA_DISPLAY_DATA_RESULT Intent-extra, the result of a draw operation.
java.lang.String EXTRA_DISPLAY_DATA_TYPE Intent-extra, the display data type.
int INVALID_DISPLAY_DATA_TRANSACTION_NUMBER Transaction error for an invalid value.
int DISPLAY_DATA_RESULT_OK A draw operation result when the operation succeeded.
int DISPLAY_DATA_RESULT_CANNOT_DRAW A draw operation result when the operation did not succeed.
int DISPLAY_DATA_TYPE_SHOW_BITMAP Drawing type for display processing, for a draw operation initiated with showBitmap().
int DISPLAY_DATA_TYPE_SHOW_IMAGE Drawing type for display processing, for a draw operation initiated with showImage().
int VOICE_TEXT_INPUT_RESULT_OK This value is returned result of voice-to-text input operation.
int VOICE_TEXT_INPUT_RESULT_FAILED This value is returned result of voice-to-text input operation.
int VOICE_TEXT_INPUT_RESULT_CANCEL This value is returned result of voice-to-text input operation.
java.lang.String EXTRA_AR_MODE Intent-extra, the rendering mode, one of:
java.lang.String EXTRA_AR_CYLINDRICAL_VERTICAL_RANGE Intent-extra, the cylindrical vertical range in degrees, a positive value > 0 .
java.lang.String EXTRA_AR_ANIMATION_SOCKET_NAME Intent-extra, the name of the Android Local Server Socket that is currently waiting for a connection from HostApp
java.lang.String EXTRA_AR_OBJECT_ID Intent-extra, the object ID, a positive UINT16 > 0 ()
java.lang.String EXTRA_AR_COORDINATE_TYPE Intent-extra, the coordinate system type, one of:
java.lang.String EXTRA_AR_POS_X Intent-extra, the X position of the object, a pixel value in the range [0 to display_width].
java.lang.String EXTRA_AR_POS_Y Intent-extra, the Y position of the object, a pixel value in the range [0 to display_height].
java.lang.String EXTRA_AR_CYLINDRICAL_POS_H Intent-extra, the compass direction of the object in degrees, a value in the range 0.0 to 360.0.
java.lang.String EXTRA_AR_CYLINDRICAL_POS_V Intent-extra, the top position of the object in degrees in the range -90.0 to 90.0.
java.lang.String EXTRA_AR_OBJECT_TYPE Intent-extra, the AR object type.
java.lang.String EXTRA_AR_RESULT Intent-extra, the result of AR rendering operation.
java.lang.String EXTRA_AR_ORDER Intent-extra, the rendering order of the object,a positive integer.
int MODE_NORMAL The standard control rendering mode (full screen or part of a screen update).
int MODE_AR AR mode, renders registered objects according to their location, rendering order, and so on.
int AR_COORDINATE_TYPE_GLASSES Coordinate system relative to the SmartEyeglass display, an absolute position in pixels.
int AR_COORDINATE_TYPE_CYLINDRICAL Cylindrical coordinate system for the space around the user, in degrees (0.0-360.0).
int AR_OBJECT_TYPE_STATIC_IMAGE The object is a static image.
int AR_OBJECT_TYPE_ANIMATED_IMAGE The object is an animated image.
int AR_RESULT_OK The operation succeeded.
int AR_RESULT_ERROR_PARAMETER_ERROR The operation failed due to incorrect parameter values.
int AR_RESULT_ERROR_MEMORY_SHORTAGE The operation failed due to shortage of memory.
int AR_RESULT_ERROR_SYSTEM The operation failed due to a system error.

Constants

Added in API level 2 public static final java.lang.String CONTROL_API_VERSION_CONFIRM_INTENT

Sent from app to HostApp to request the current SmartEyeglass API version. If the current version is lower than the version required by the app, an error is thrown and the app is terminated. This intent requires the "com.sony.smarteyeglass.permission.SMARTEYEGLASS" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.API_VERSION_CONFIRM"

Added in API level 1 public static final java.lang.String CONTROL_TEXT_SHOW_INTENT

Sent from app to HostApp to show a text view on the accessory.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.TEXT_SHOW"

Added in API level 1 public static final java.lang.String CONTROL_DIALOG_OPEN_INTENT

Sent from app to HostApp to show a popup message.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.DIALOG_OPEN"

Added in API level 1 public static final java.lang.String CONTROL_DIALOG_CLOSED_EVENT_INTENT

Sent by HostApp when a popup dialog is closed by user action or after a timeout.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.DIALOG_CLOSED_EVENT"

Added in API level 1 public static final java.lang.String CONTROL_VOICE_TEXT_INPUT_ENABLE_INTENT

Sent from app to HostApp to initiate a voice-to-text input operation. This intent requires the "com.sony.smarteyeglass.permission.VOICE_TEXT_INPUT" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.VOICE_TEXT_INPUT_ENABLE"

Added in API level 1 public static final java.lang.String CONTROL_VOICE_TEXT_INPUT_NOTIFY_RECOGNIZED_TEXT_EVENT_INTENT

Sent by HostApp when a voice-to-text input operation has been completed.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.VOICE_TEXT_INPUT_NOTIFY_RECOGNIZED_TEXT_EVENT"

Added in API level 1 public static final java.lang.String CONTROL_POWER_MODE_SET_MODE_INTENT

Sent from app to HostApp to change the power mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.POWER_MODE_SET_MODE"

Added in API level 1 public static final java.lang.String CONTROL_POWER_MODE_NOTIFY_MODE_EVENT_INTENT

Sent by HostApp when the power mode has been changed.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.POWER_MODE_NOTIFY_MODE_EVENT"

Added in API level 1 public static final java.lang.String CONTROL_SAFE_DISPLAY_MODE_SET_MODE_INTENT

Sent from app to HostApp to change the safe display mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.SAFE_DISPLAY_MODE_SET_MODE"

Added in API level 1 public static final java.lang.String CONTROL_SCREEN_DEPTH_SET_DEPTH_INTENT

Sent from app to the HostApp to change the screen depth setting.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.SCREEN_DEPTH_SET_DEPTH"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_SET_MODE_INTENT

Sent from app to the HostApp to change the camera mode. This intent requires the "com.sony.smarteyeglass.permission.CAMERA" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.CAMERA_SET_MODE"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_START_INTENT

Sent from app to HostApp to initiate the camera image-capture operation. This intent requires the "com.sony.smarteyeglass.permission.CAMERA" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.CAMERA_START"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_CAPTURE_STILL_INTENT

Sent from app to HostApp to take a photo. This intent requires the "com.sony.smarteyeglass.permission.CAMERA" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.CAMERA_CAPTURE_STILL"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_STOP_INTENT

Sent from app to HostApp to stop camera function. This intent requires the "com.sony.smarteyeglass.permission.CAMERA" permission.

Constant Value: "com.sony.smarteyeglass.control.CAMERA_STOP"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_NOTIFY_CAPTURED_FILE_EVENT_INTENT

Sent by HostApp when a record-to-file operation has finished. When camera mode is CAMERA_MODE_STILL_TO_FILE, this intent notice is given to CONTROL_CAMERA_CAPTURE_STILL_INTENT.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.CAMERA_NOTIFY_CAPTURED_FILE_EVENT"

Added in API level 1 public static final java.lang.String CONTROL_CAMERA_NOTIFY_ERROR_EVENT_INTENT

Sent by HostApp if starting the camera-recording operation throws an error.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.CAMERA_NOTIFY_ERROR_EVENT"

Added in API level 2 public static final java.lang.String CONTROL_AR_SET_MODE_INTENT

Sent from app to HostApp to change the AR rendering mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_SET_MODE"

Added in API level 2 public static final java.lang.String CONTROL_AR_CHANGE_CYLINDRICAL_VERTICAL_RANGE_INTENT

Send from app to HostApp to change the cylindrical height in AR mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_CHANGE_CYLINDRICAL_VERTICAL_RANGE"

Added in API level 2 public static final java.lang.String CONTROL_AR_ENABLE_ANIMATION_REQUEST_INTENT

Sent from app to HostApp to initiate AR animation.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_ENABLE_ANIMATION_REQUEST"

Added in API level 2 public static final java.lang.String CONTROL_AR_ENABLE_ANIMATION_RESPONSE_INTENT

Sent by HostApp in response to CONTROL_AR_ENABLE_ANIMATION_REQUEST_INTENT.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_ENABLE_ANIMATION_RESPONSE"

Added in API level 2 public static final java.lang.String CONTROL_AR_DISABLE_ANIMATION_REQUEST_INTENT

Sent from app to HostApp to terminate an animation.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_DISABLE_ANIMATION_REQUEST"

Added in API level 2 public static final java.lang.String CONTROL_AR_DISABLE_ANIMATION_RESPONSE_INTENT

Sent by HostApp in response to CONTROL_AR_DISABLE_ANIMATION_REQUEST_INTENT.

Constant Value: "com.sony.smarteyeglass.control.AR_DISABLE_ANIMATION_RESPONSE"

Added in API level 2 public static final java.lang.String CONTROL_AR_REGISTER_OBJECT_REQUEST_INTENT

Sent from app to HostApp to register a new object in AR mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_REGISTER_OBJECT_REQUEST"

Added in API level 2 public static final java.lang.String CONTROL_AR_REGISTER_OBJECT_RESPONSE_INTENT

Sent by HostApp in response to CONTROL_AR_REGISTER_OBJECT_REQUEST_INTENT.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_REGISTER_OBJECT_RESPONSE"

Added in API level 2 public static final java.lang.String CONTROL_AR_GET_OBJECT_REQUEST_INTENT

Sent by HostApp to request image data to render. The app must respond by sending the CONTROL_AR_GET_OBJECT_RESPONSE_INTENT with image data to be rendered.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_GET_OBJECT_REQUEST"

Added in API level 2 public static final java.lang.String CONTROL_AR_GET_OBJECT_RESPONSE_INTENT

Sent from app to HostApp in response to CONTROL_AR_GET_OBJECT_REQUEST_INTENT.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_GET_OBJECT_RESPONSE"

Added in API level 2 public static final java.lang.String CONTROL_AR_CHANGE_OBJECT_ORDER_INTENT

Sent from app to HostApp to change the rendering order of an object. An object with an order value of zero is drawn in the foreground, on top of other objects. Objects with greater values are rendered further in the background.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_CHANGE_OBJECT_ORDER"

Added in API level 2 public static final java.lang.String CONTROL_AR_MOVE_OBJECT_INTENT

Sent from app to HostApp to change the position of an object.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_MOVE_OBJECT"

Added in API level 2 public static final java.lang.String CONTROL_AR_DELETE_OBJECT_INTENT

Sent from app to HostApp to delete a rendering object. An object ID value of zero will delete all objects. Also note that all objects are automatically deleted when the control extension is paused or if the rendering mode is changed to standard rendering mode. This intent requires the "com.sony.smarteyeglass.permission.SMARTEYEGLASS" permission.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_DELETE_OBJECT"

Added in API level 1 public static final java.lang.String CONTROL_DISPLAY_NOTIFY_STATUS_EVENT_INTENT

Sent by HostApp when the display is turned on or off, either manually by the user or automatically.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.DISPLAY_NOTIFY_STATUS_EVENT"

Added in API level 2 public static final java.lang.String CONTROL_DISPLAY_DATA_RESULT_INTENT

Sent from HostApp to app when display processing is completed, in response to CONTROL_DISPLAY_DATA_INTENT.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.DISPLAY_DATA_RESULT"

Added in API level 2 public static final java.lang.String CONTROL_AR_ANIMATION_RESULT_INTENT

Sent from HostApp to app when display processing of an AR animation object is completed.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.AR_ANIMATION_RESULT"

Added in API level 1 public static final java.lang.String CONTROL_BATTERY_GET_LEVEL_REQUEST_INTENT

Sent from app to HostApp to request the battery status.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.BATTERY_GET_LEVEL_REQUEST"

Added in API level 1 public static final java.lang.String CONTROL_BATTERY_GET_LEVEL_RESPONSE_INTENT

Sent by HostApp in response to a request for battery status.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.BATTERY_GET_LEVEL_RESPONSE"

Added in API level 1 public static final java.lang.String CONTROL_TELEPHONY_GET_MODE_REQUEST_INTENT

Sent from app to HostApp to request the status of the telephony function.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.TELEPHONY_GET_MODE_REQUEST"

Added in API level 1 public static final java.lang.String CONTROL_TELEPHONY_GET_MODE_RESPONSE_INTENT

Sent by HostApp in response to a request for the status of the telephony function.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.TELEPHONY_GET_MODE_RESPONSE"

Added in API level 1 public static final java.lang.String CONTROL_SOUND_EFFECT_SET_MODE_INTENT

Sent from app to HostApp to enable or disable the sound effect that provides feedback for user input actions on the controller (key press or touch pad action).

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.SOUND_EFFECT_SET_MODE"

Added in API level 1 public static final java.lang.String CONTROL_STANDBY_CONFIRM_REQUEST_INTENT

Sent by HostApp to request confirmation when the standby mode is changed.

Constant Value: "com.sony.smarteyeglass.control.STANDBY_CONFIRM_REQUEST"

Added in API level 1 public static final java.lang.String CONTROL_STANDBY_CONFIRM_RESPONSE_INTENT

Sent from app to HostApp to provide confirmation of a change in standby mode.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.STANDBY_CONFIRM_RESPONSE"

Added in API level 1 public static final java.lang.String CONTROL_STANDBY_NOTIFY_CONDITION_EVENT_INTENT

Sent by HostApp to request the current standby-mode status.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.STANDBY_NOTIFY_CONDITION_EVENT"

Added in API level 1 public static final java.lang.String CONTROL_STANDBY_ENTER_INTENT

Sent from app to HostApp in response to a request for the current standby-mode status.

Intent-extra data:

Constant Value: "com.sony.smarteyeglass.control.STANDBY_ENTER"

Added in API level 2 public static final java.lang.String EXTRA_VERSION_DATA

Intent-extra, a SmartEyeglass API version number.

TYPE: (INTEGER) (int)

ALLOWED VALUES: >= 1 (INTEGER)

Constant Value: "version_data"

Added in API level 1 public static final java.lang.String EXTRA_DATA_IS_RAW_FORMAT

Intent-extra, whether data can be sent to the accessory in a raw format. If not supplied, data is assumed to be in the standard image format.

TYPE: INTEGER (int)

ALLOWED VALUES:

  • 0: 'The data is in standard image format(8bit bitmap format)' This is the default.
  • 1: 'The data is in raw image format which can be sent directly to the accessory(8bit data sequences for every pixels)'


Constant Value: "data_is_raw_format"

Added in API level 1 public static final java.lang.String EXTRA_DIALOG_MODE

Intent-extra, a Dialog message mode.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "dialog_mode"

Added in API level 1 public static final java.lang.String EXTRA_DIALOG_TITLE

Intent-extra, a Dialog title.

TYPE: STRING

Constant Value: "dialog_title"

Added in API level 1 public static final java.lang.String EXTRA_DIALOG_MESSAGE

Intent-extra, a Dialog message.

TYPE: STRING

Constant Value: "dialog_message"

Added in API level 1 public static final java.lang.String EXTRA_DIALOG_BUTTONS

Intent-extra, user-defined buttons for a Dialog. When you use this definition, please specify EXTRA_DIALOG_MODE as DIALOG_MODE_USER_DEFINED.

TYPE: STRING_ARRAY

Constant Value: "dialog_buttons"

Added in API level 1 public static final java.lang.String EXTRA_CAMERA_MODE

Intent-extra, a camera capture mode.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "camera_mode"

Added in API level 1 public static final java.lang.String EXTRA_CAMERA_JPEG_QUALITY

Intent-extra, the JPEG quality setting for the camera.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "camera_jpeg_quality"

Added in API level 1 public static final java.lang.String EXTRA_CAMERA_RESOLUTION

Intent-extra, the resolution setting for the camera.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "camera_resolution"

Added in API level 1 public static final java.lang.String EXTRA_CAMERA_VIDEO_SOCKET_NAME

Intent-extra, the name of the Android Local Server Socket that is waiting for a connection from HostApp to communicate picture data from the camera.

TYPE: STRING (String)

Constant Value: "camera_video_socket_name"

Added in API level 1 public static final java.lang.String EXTRA_IMAGE_WIDTH

Intent-extra, the width of a static image in pixels. Max value is 419..

TYPE: INTEGER (int)

Constant Value: "image_width"

Added in API level 1 public static final java.lang.String EXTRA_IMAGE_HEIGHT

Intent-extra, the height of a static image in pixels. Max value is 138..

TYPE: INTEGER (int)

Constant Value: "image_height"

Added in API level 1 public static final java.lang.String EXTRA_LAYER_TRANSITION_EFFECT_TYPE

Intent-extra, the direction of a screen-layer animation.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "layer_transition_effect_type"

Added in API level 1 public static final java.lang.String EXTRA_POWER_MODE

Intent-extra, a power mode.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "power_mode"

Added in API level 1 public static final java.lang.String EXTRA_DISPLAY_STATUS

Intent-extra, the display status.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "display_status"

public static final java.lang.String EXTRA_SAFE_DISPLAY_MODE

Intent-extra, the safe display mode.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "safe_display_mode"

public static final java.lang.String EXTRA_TELEPHONY_MODE

Intent-extra, the telephony function status.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "telephony_mode"

public static final java.lang.String EXTRA_DIALOG_SELECTED_BUTTON_INDEX

Intent-extra, the selected dialog button index.

TYPE: INTEGER

Constant Value: "dialog_selected_button_index"

public static final java.lang.String EXTRA_SCREEN_DEPTH

Intent-extra, the screen depth position.

TYPE: INTEGER

ALLOWED VALUES: from -4 to 6 (same as hardware settings preference)

  • 0 is about 5 meters(default)
  • 6 is near
  • -4 is about 10 meters or more


Constant Value: "screen_depth"

public static final java.lang.String EXTRA_BATTERY_LEVEL

Intent-extra, the battery status.

TYPE: INTEGER (int) in battery charge percentage (0 - 100%)

Constant Value: "battery_level"

public static final java.lang.String EXTRA_SOUND_EFFECT_MODE

Intent-extra, the sound effect setting.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "sound_effect_mode"

public static final java.lang.String EXTRA_STANDBY_CONDITION

Intent-extra, the standby mode setting.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "standby_condition"

public static final java.lang.String EXTRA_STANDBY_CONFIRMED_RESULT

Intent-extra, the standby confirm result.

TYPE: INTEGER

ALLOWED VALUES:



Constant Value: "standby_confirmed_result"

Added in API level 1 public static final int STANDBY_CONFIRMED_RESULT_NG

Standby mode changes confirm result NG.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int STANDBY_CONFIRMED_RESULT_OK

Standby mode changes confirm result OK.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int DIALOG_MODE_TIMEOUT

Dialog closes automatically after 5 seconds.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int DIALOG_MODE_OK

Dialog requires a confirmation to close.

Constant Value: 2 (0x00000002)

Added in API level 1 public static final int DIALOG_MODE_USER_DEFINED

Dialog with user-defined message and buttons, requires a confirmation to close.

Constant Value: 3 (0x00000003)

Added in API level 1 public static final int CAMERA_JPEG_QUALITY_STANDARD

Standard JPEG Quality.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int CAMERA_JPEG_QUALITY_FINE

Fine JPEG Quality.

Constant Value: 2 (0x00000002)

Added in API level 1 public static final int CAMERA_JPEG_QUALITY_SUPER_FINE

Super-fine JPEG Quality.

Constant Value: 3 (0x00000003)

Added in API level 1 public static final int CAMERA_RESOLUTION_3M

3 Megapixel camera resolution.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int CAMERA_RESOLUTION_1M

1 Megapixel camera resolution.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int CAMERA_RESOLUTION_VGA

VGA camera resolution.

Constant Value: 4 (0x00000004)

Added in API level 1 public static final int CAMERA_RESOLUTION_QVGA

QVGA camera resolution.

Constant Value: 6 (0x00000006)

Added in API level 1 public static final int CAMERA_MODE_STILL

Camera takes a still picture and saves the file using a specified Socket. In this mode, a picture is taken by CONTROL_CAMERA_CAPTURE_STILL_INTENT. The captured image is written using the SOCKET specified by EXTRA_CAMERA_VIDEO_SOCKET_NAME.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int CAMERA_MODE_STILL_TO_FILE

Camera takes a still picture and saves the file using a specified URI. In this mode, a picture is taken by CONTROL_CAMERA_CAPTURE_STILL_INTENT. The captured image is saved on the file path specified as the EXTRA_DATA_URI parameter of CONTROL_CAMERA_START_INTENT. After the image capture, completion is reported by CONTROL_CAMERA_NOTIFY_CAPTURED_FILE_EVENT_INTENT.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int CAMERA_MODE_JPG_STREAM_LOW_RATE

Camera takes still pictures continuously at 7.5fps. In this mode, the image capture is started by CONTROL_CAMERA_START_INTENT. The captured images are written using the SOCKET specified by EXTRA_CAMERA_VIDEO_SOCKET_NAME.

Constant Value: 2 (0x00000002)

Added in API level 1 public static final int CAMERA_MODE_JPG_STREAM_HIGH_RATE

Camera takes still pictures continuously at 15fps. In this mode, the image capture is started by CONTROL_CAMERA_START_INTENT. The captured images are written using the SOCKET specified by EXTRA_CAMERA_VIDEO_SOCKET_NAME.

Constant Value: 3 (0x00000003)

Added in API level 1 public static final int POWER_MODE_HIGH

Power mode constant value for high bandwidth (WiFi is used).

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int POWER_MODE_NORMAL

Power mode constant value for normal bandwidth (Bluetooth is used). This value is used by default when starting an app.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int SAFE_DISPLAY_MODE_NONE

Safe display mode is off. The full display is rendered.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int SAFE_DISPLAY_MODE_1

A Safe display mode is on. Only the bottom half of the display is rendered.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int DISPLAY_STATUS_OFF

Display is off.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int DISPLAY_STATUS_ON

Display is on.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int SOUND_EFFECT_OFF

Sound effect feedback for the controller is off.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int SOUND_EFFECT_ON

Sound effect feedback for the controller is on.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int STANDBY_MODE_OFF

Standby mode is off.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int STANDBY_MODE_ON

Standby mode is on.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int TELEPHONY_MODE_BT_HEADSET_DISABLE

The telephony function is disabled in the BT Headset.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int TELEPHONY_MODE_BT_HEADSET_ENABLE

The telephony function is enabled in the BT Headset.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int LAYER_TRANSITION_MOVE_LOWER_LAYER

The layer transition animation type for moving down to a lower layer.

Constant Value: 0 (0x00000000)

Added in API level 1 public static final int LAYER_TRANSITION_MOVE_UPPER_LAYER

The layer transition animation type for moving up to an higher layer.

Constant Value: 1 (0x00000001)

Added in API level 1 public static final int ERROR_INVALID_PARAMETER

Error code returned when an invalid parameter is passed. Return this value to CONTROL_CAMERA_START_INTENT.

Constant Value: -1 (0xffffffffffffffff)

Added in API level 1 public static final int ERROR_FILE_ACCESS

Error code returned when file cannot be accessed or the file path is invalid. Return this value to CONTROL_CAMERA_CAPTURE_STILL_INTENT.

Constant Value: -2 (0xfffffffffffffffe)

Added in API level 3 public static final int ERROR_CAPTURE

Error code returned when the image-capture operation failed. Return this value to CONTROL_CAMERA_CAPTURE_STILL_INTENT.

Constant Value: -3 (0xfffffffffffffffd)

Added in API level 2 public static final java.lang.String EXTRA_DISPLAY_DATA_TRANSACTION_NUMBER

Intent-extra, the transaction number.

TYPE: INTEGER (int)

ALLOWED VALUES: >= 0 (UINT16)

Constant Value: "display_data_transaction_number"

Added in API level 2 public static final java.lang.String EXTRA_DISPLAY_DATA_RESULT

Intent-extra, the result of a draw operation.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "display_data_result"

Added in API level 2 public static final java.lang.String EXTRA_DISPLAY_DATA_TYPE

Intent-extra, the display data type.

TYPE: INTEGER (int)

ALLOWED VALUES:



Constant Value: "display_data_type"

Added in API level 2 public static final int INVALID_DISPLAY_DATA_TRANSACTION_NUMBER

Transaction error for an invalid value.

Constant Value: -1 (0xffffffffffffffff)

Added in API level 2 public static final int DISPLAY_DATA_RESULT_OK

A draw operation result when the operation succeeded.

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int DISPLAY_DATA_RESULT_CANNOT_DRAW

A draw operation result when the operation did not succeed.

Constant Value: 1 (0x00000001)

Added in API level 2 public static final int DISPLAY_DATA_TYPE_SHOW_BITMAP

Drawing type for display processing, for a draw operation initiated with showBitmap().

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int DISPLAY_DATA_TYPE_SHOW_IMAGE

Drawing type for display processing, for a draw operation initiated with showImage().

Constant Value: 1 (0x00000001)

Added in API level 3 public static final int VOICE_TEXT_INPUT_RESULT_OK

This value is returned result of voice-to-text input operation. Status constant indicates successful voice-to-text input operation.

Constant Value: 0 (0x00000000)

Added in API level 3 public static final int VOICE_TEXT_INPUT_RESULT_FAILED

This value is returned result of voice-to-text input operation. Status constant indicates failed voice-to-text input operation.

Constant Value: 1 (0x00000001)

Added in API level 3 public static final int VOICE_TEXT_INPUT_RESULT_CANCEL

This value is returned result of voice-to-text input operation. Status constant indicates canceled voice-to-text input operation.

Constant Value: 2 (0x00000002)

Added in API level 2 public static final java.lang.String EXTRA_AR_MODE

Intent-extra, the rendering mode, one of:

TYPE: INTEGER (int)

Constant Value: "ar_mode"

Added in API level 2 public static final java.lang.String EXTRA_AR_CYLINDRICAL_VERTICAL_RANGE

Intent-extra, the cylindrical vertical range in degrees, a positive value > 0 .

TYPE: FLOAT (float)

Constant Value: "ar_cylindrical_vertical_range"

Added in API level 2 public static final java.lang.String EXTRA_AR_ANIMATION_SOCKET_NAME

Intent-extra, the name of the Android Local Server Socket that is currently waiting for a connection from HostApp

TYPE: TEXT

Constant Value: "ar_animation_socket_name"

Added in API level 2 public static final java.lang.String EXTRA_AR_OBJECT_ID

Intent-extra, the object ID, a positive UINT16 > 0 ()

TYPE: INTEGER (int)

Constant Value: "ar_object_id"

Added in API level 2 public static final java.lang.String EXTRA_AR_COORDINATE_TYPE

Intent-extra, the coordinate system type, one of:

TYPE: INTEGER (int)

Constant Value: "ar_coordinate_type"

Added in API level 2 public static final java.lang.String EXTRA_AR_POS_X

Intent-extra, the X position of the object, a pixel value in the range [0 to display_width].

TYPE: INTEGER (int)

Constant Value: "ar_pos_x"

Added in API level 2 public static final java.lang.String EXTRA_AR_POS_Y

Intent-extra, the Y position of the object, a pixel value in the range [0 to display_height].

TYPE: INTEGER (int)

Constant Value: "ar_pos_y"

Added in API level 2 public static final java.lang.String EXTRA_AR_CYLINDRICAL_POS_H

Intent-extra, the compass direction of the object in degrees, a value in the range 0.0 to 360.0. A value of 0.0 means north and a value of 180.0 means south.

TYPE: FLOAT (float)

Constant Value: "ar_cylindrical_pos_h"

Added in API level 2 public static final java.lang.String EXTRA_AR_CYLINDRICAL_POS_V

Intent-extra, the top position of the object in degrees in the range -90.0 to 90.0.

TYPE: FLOAT (float)

Constant Value: "ar_cylindrical_pos_v"

Added in API level 2 public static final java.lang.String EXTRA_AR_OBJECT_TYPE

Intent-extra, the AR object type. One of:

TYPE: INTEGER (int)

Constant Value: "ar_object_type"

Added in API level 2 public static final java.lang.String EXTRA_AR_RESULT

Intent-extra, the result of AR rendering operation. One of:

TYPE: INTEGER (int)

Constant Value: "ar_result"

Added in API level 2 public static final java.lang.String EXTRA_AR_ORDER

Intent-extra, the rendering order of the object,a positive integer. A value of zero means in the foreground, object with higher values are further back.

TYPE: INTEGER (int)

Constant Value: "ar_order"

Added in API level 2 public static final int MODE_NORMAL

The standard control rendering mode (full screen or part of a screen update).

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int MODE_AR

AR mode, renders registered objects according to their location, rendering order, and so on.

Constant Value: 1 (0x00000001)

Added in API level 2 public static final int AR_COORDINATE_TYPE_GLASSES

Coordinate system relative to the SmartEyeglass display, an absolute position in pixels.

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int AR_COORDINATE_TYPE_CYLINDRICAL

Cylindrical coordinate system for the space around the user, in degrees (0.0-360.0).

Constant Value: 1 (0x00000001)

Added in API level 2 public static final int AR_OBJECT_TYPE_STATIC_IMAGE

The object is a static image.

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int AR_OBJECT_TYPE_ANIMATED_IMAGE

The object is an animated image.

Constant Value: 1 (0x00000001)

Added in API level 2 public static final int AR_RESULT_OK

The operation succeeded.

Constant Value: 0 (0x00000000)

Added in API level 2 public static final int AR_RESULT_ERROR_PARAMETER_ERROR

The operation failed due to incorrect parameter values.

Constant Value: 1 (0x00000001)

Added in API level 2 public static final int AR_RESULT_ERROR_MEMORY_SHORTAGE

The operation failed due to shortage of memory.

Constant Value: 2 (0x00000002)

Added in API level 2 public static final int AR_RESULT_ERROR_SYSTEM

The operation failed due to a system error.

Constant Value: 3 (0x00000003)