php - How can i use Mobile Hardware components, like: MNotification, MCamera, MGeolocation, MAccelerometer? -
i using embarcadero's html5builder android server mobile apps development.
how can use mobile hardware components, like: mnotification, mcamera, mgeolocation, maccelerometer ?
well, configure properties @ design time, , use javascript events (mpage’s or otherwise) work hardware components. started client events, recommend follow hello world tutorial client mobile applications, using server mobile application instead.
obviously, each mobile hardware component works differently. common them how find out how use them.
in documentation there page, mobile hardware components, list of hardware components. hardware components have page of own linked there.
note: links rpcl reference in documentation (rpcl html5 builder php library) broken. access reference documentation hardware component, create mobile application, add target hardware component it, select component , click f1.
most hardware component pages in wiki provide section, help resources, tutorials, video tutorials, links or references sample applications, or links phonegap documentation (hardware components based on phonegap).
in addition properties , javascript events, use javascript functions interact components. javascript functions not listed in (php) rpcl reference, listed in wiki pages.
so, components mention:
to use mnotification, need define
message
property @ design time, , callcomponentnamenotification()
(for example,mnotification1notification()
) javascript event, suchmpage
’sonload
, orbutton
’sonclick
.to use mcamera, call
componentnamegetpicture()
, , define event handlersonerror
,onsuccess
.for mgeolocation recommend watching video tutorial linked documentation.
in case of maccelerometer, sample application references on documentation might start point.
note: mention work on server mobile applications, think it’s worth mentioning that, while mobile hardware components work on server applications, work when deploy them mobile deployment wizard, based on phonegap.
Comments
Post a Comment