| 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() |
Creates an event object for camera operation.
| 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. |
Creates an event object for error case.
| 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.. |
Identifies the type of data being returned.
0 for picture.
Retrieves the frame ID of the captured data.
The frame ID.
Retrieves the timestamp of the captured data.
The timestamp, milliseconds since the epoch (1970-01-01).
Retrieves the picture data.
The picture data, or NULL on error.
Retrieves error information.
The error code, 0 on success
The camera event class passes data captured by the camera.