MOVERIO Pro Developer's Guide (Rev.1.4)
91
6.8.13.
setPreviewCallback
Function
When the callback method described in 6.8.12 is registered, it is called each time
image data is acquired. The registered callback method is executed repeatedly while
previewing.
Format
Parameter
Model
name
in/out Explanation
Camera.PreviewCallback cb
in
Callback object that receives image data.
Return value
None.
Usage procedure
Remarks
To cancel image data acquisition, register null as the callback method.
void setPreviewCallback (
Camera.PreviewCallback cb
);
// App developer applies processing when acquiring image data
private Camera.PreviewCallback mPreviewCB = new
Camera.PreviewCallback() {
@Override
public void onPreviewFrame(byte
data[], Camera camera) {
Log.d(TAG, "Save preview image");
synchronized (lockObject) {
savePreviewData(data);
}
}
};
//Register the callback method at the optimal time
camera.setPreviewCallback(mPreviewCB);
・・・・・・
// When you remove the callback method, register null
camera.setPreviewCallback(null);
Summary of Contents for Moverio Pro BT-2000
Page 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Page 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Page 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Page 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Page 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Page 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Page 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Page 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Page 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Page 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Page 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Page 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...