The SmartEyeglass API allows you to control what is displayed on the device, and to access and control the device sensors, such as the accelerometer, compass, camera, microphone, and so on. In this section, you’ll find a number of different guides talking you through the depths of SmartEyeglass development.
Not sure where to start? Check out this summary of guides, and click any of the guide names to learn more.
Every extension must provide basic configuration information about the app and its capabilities to the Smart Extensions framework.
- User interface
This guide shows specific techniques for defining an application UI for the SmartEyeglass display. You can render bitmaps or XML-based layouts, handle user-interaction events, and customize transitions between screens in your UI with built-in animation effects.
Define a widget that is suited to the SmartEyeglass display and use it as the entry-point card for your app.
There are simple predefined dialogs for alerts and user notifications, and custom dialogs that you can use for multiple selection options and small menus.
A notification is a message displayed on the SmartEyeglass such as a Facebook update, Calendar alert, or SMS. You can display notifications to the user using the Notification API and the information displayed in each notification can be customized.
- Sensor data
You can access data collected by the various sensors. SmartEyeglass has an accelerometer, a magnetic field sensor, and a gyroscope (a rotation vector sensor) that provide information about the user’s head movement, attitude, and direction. A light sensor provides information about ambient brightness.
The SmartEyeglass built-in camera can record still pictures or video, or it can save a real-time JPG stream to memory.
- AR rendering
Learn how to overlay a dynamic display onto real-world objects as they appear in the view the user sees through the SmartEyeglass.
- Voice-to-text input
SmartEyeglass can receive voice input from the built-in microphone, and translate voice into text.
- Audio I/O
The SmartEyeglass device acts as a Bluetooth headset. You can use the Android Bluetooth Hands-Free Profile (BT HFP) API to capture sound and play back audio as you would for any standard Bluetooth headset.
- Settings guide
Utility methods allow you to control settings such as safe display mode, whether the connection is Bluetooth or WiFi, and whether to play a sound on the controller’s speaker in response to particular events.