Return value: string value(the value corresponding the key)
Sensor API
require('node/OPELRecording')
Get()
On()
EventRegister()
EventUpdate()
EventUnregister()
Camera API
require('node/OPELRecording')
RecordingStart()
RecordingStop()
SnapshotStart()
streamingStart()
Face Detection API
require('node/OPELFaceDetection')
faceDetection(int count, callback(int err, int numberOfFace))
Omitted Functions
Following functions are not included in OPEL JavaScript API v0.2, since there is no demand in OPEL Alpha 2.
However, they should be included in OPEL API v1.0 due to the introduction of Resource Framework.
Here is OPEL JavaScript API v0.2 currently used in OPEL Alpha 2.
OPEL JavaScript API v0.2
App API
Remote UI API
Notification UI
Config UI
newConfigPage makeConfigPage()
newConfigPage addStrTextbox(oldConfigPage, key, description, constrain-length)
newConfigPage addNumberTextbox(oldConfigPage, key, description, constrain-range1, 2)
newConfigPage addSingleDialog(oldConfigPage, key, description, item1, item2, ... )
newConfigPage addMultiDialog(oldConfigPage, key, description, item1, item2, ... )
newConfigPage addDateDialog(oldConfigPage, key, description, constrain[0 or 1] )
newConfigPage addTimeDialog(oldConfigPage, key, description, constrain[0 or 1] )
void sendConfigPage(configPage, function(configData) )
value getData(configData, key)
Sensor API
require('node/OPELRecording')
Get()
On()
EventRegister()
EventUpdate()
EventUnregister()
Camera API
require('node/OPELRecording')
RecordingStart()
RecordingStop()
SnapshotStart()
streamingStart()
Face Detection API
require('node/OPELFaceDetection')
faceDetection(int count, callback(int err, int numberOfFace))
Omitted Functions
Following functions are not included in OPEL JavaScript API v0.2, since there is no demand in OPEL Alpha 2. However, they should be included in OPEL API v1.0 due to the introduction of Resource Framework.
Let's discuss on OPEL API v1.0 design.