欢迎来到天天文库
浏览记录
ID:52969030
大小:5.90 MB
页数:100页
时间:2020-04-05
《通过声明式方法和编程方式开发数据服务.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.IntegratingDeviceServiceswithADFMobile2Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.ApacheCordova/PhoneGapADFMobileutilizesPhoneGaptoaccessmostoftheonboarddevicesservices–TobereplacedbyApacheCordovasoonProvidesa
2、ccessto:–DeviceProperties–SMSandEmail(NotthroughPhoneGap)–Contacts–CameraandPhotoLibrary–Geolocation3Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.OverviewAccessingDeviceServices1.DataControls2.ImplicitELObjects3.ProgrammaticAPIs4Copyright©2012,Oracleand/oritsaffiliates.All
3、rightsreserved.OverviewAccessingDeviceServices1.DataControls2.ImplicitELObjects3.ProgrammaticAPIsFoundintheDataControlPaletteDragndropservicesontoapageTakethegruntworkoutofcodingcallstotheAPIandconstructingthenecessaryscreens5Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved
4、.OverviewAccessingDeviceServices1.DataControls2.ImplicitELObjects3.ProgrammaticAPIsProvideeasyaccesstodevicepropertiesReferencedviatheUIcomponentsSimplytypeorusetheExpressionBuilder#{deviceScope.device.hasContacts}6Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.OverviewA
5、ccessingDeviceServices1.DataControls2.ImplicitELObjects3.ProgrammaticAPIsProvideprogrammerstheflexibilityofaccessingdeviceservicesfromJavawiththeirownJavaBeansEasiertohandleerrorconditionsandprocessanyoutputsDeviceManagerdm=DeviceManagerFactory.getDeviceManager();dm.sendEmail("foo@bar
6、.com","joe.jones@corp.com","Testemail","Testmessage",null,null,null);7Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.DeviceServiceAccessiblefromJavaScriptAccessdeviceservicesfromnonAMXpages–RemoteURL–LocalHTMLAddJavaScriptlibrarytoyourpageDirectaccesstoinvokedevicefeature
7、sUseadf.mf.api.*–adf.mf.api.sendSMS({to:"5551234567",body:"Thisisatestmessage"});8Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.9Copyright©2012,Oracleand/oritsaffiliates.Allrightsreserved.AccessingDevicePropertiesServiceDataControlELAccessProgrammaticDevicePropert
此文档下载收益归作者所有