SmartEyeglass SDK
public class

CameraEvent

extends java.lang.Object
  1. java.lang.Object
  2. com.sony.smarteyeglass.extension.util.CameraEvent

Class Overview

The camera event class passes data captured by the camera.

Summary

Public Constructors
CameraEvent(int index, int frameId, long timeStamp, byte[] mData)

Creates an event object for camera operation.

CameraEvent(int index, int frameId, long timeStamp, int status)

Creates an event object for error case.

Public Methods
int getIndex()

Identifies the type of data being returned.

int getFrameId()

Retrieves the frame ID of the captured data.

long getTimestamp()

Retrieves the timestamp of the captured data.

byte[] getData()

Retrieves the picture data.

int getErrorStatus()

Retrieves error information.

java.lang.String toString()

Public Constructors

public CameraEvent(int index, int frameId, long timeStamp, byte[] mData)

Creates an event object for camera operation.

Parameters
index identifies the type of data being passed, 0 for picture.
frameId value used to identify the order of the captured data.
timeStamp milliseconds since the epoch (1970-01-01).
mData picture data.

public CameraEvent(int index, int frameId, long timeStamp, int status)

Creates an event object for error case.

Parameters
index identifies the type of data being passed, 0 for picture.
frameId value used to identify the order of the captured data.
timeStamp milliseconds since the epoch (1970-01-01).
status error status. 0 : no error. !0 : error occurred..

Public Methods

public int getIndex()

Identifies the type of data being returned.

Returns

0 for picture.

public int getFrameId()

Retrieves the frame ID of the captured data.

Returns

The frame ID.

public long getTimestamp()

Retrieves the timestamp of the captured data.

Returns

The timestamp, milliseconds since the epoch (1970-01-01).

public byte[] getData()

Retrieves the picture data.

Returns

The picture data, or NULL on error.

public int getErrorStatus()

Retrieves error information.

Returns

The error code, 0 on success

public java.lang.String toString()

Overrides