From what I seen the only thing you probably can't do with Cordova plugins still is Google Maps stuff because SB is custon UI. Maybe with some inline JS to a webgadget to do markers, icons, links with Maps JS API.
Where to get more packages: https://cordova.apache.org/plugins/
Code: Select all
Import "cordova telemetry on" : EndImport
Import "cordova plugin add cordova-plugin-camera" : EndImport
Import "cordova plugin add wifiwizard" : EndImport
;Returns BASE64 data URL for bitmap
Procedure PictureOut(image.s)
If Len(image)>0 : Debug image.s : EndIf
EndProcedure
PictureOut("")
;if you want to get a picture without user interaction you'll need one of the other camera plugins
Procedure.s GetPicture(camera.s)
!if(v_camera=='FRONT') var direction=1;
!if(v_camera=='BACK') var direction=0;
!navigator.camera.getPicture(onSuccess, onFail,
!{
! destinationType: Camera.DestinationType.DATA_URL,
! quality:100,
! cameraDirection:direction,
! sourceType: Camera.PictureSourceType.CAMERA,
! popoverOptions: new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY)
!});
!function onSuccess(image){
!f_pictureout(image);
!}
!function onFail(message){
!f_pictureout(message);
!}
EndProcedure
;WIFI JSON output callback
Procedure APOutput(nodes.s)
If Len(nodes.s)>0 : Debug nodes.s : EndIf
EndProcedure
APOutput("")
;scan WIFI APs
;getScanResults might need to be in a timer
Procedure GetAccessPoints()
!function iweufwhi(isenabled){
!if(isenabled===true){
!WifiWizard.startScan(function(){},function(){});
!WifiWizard.getScanResults({},function(networks){f_apoutput(JSON.stringify(networks));},function(networks){});
!}
!}
!WifiWizard.isWifiEnabled(function(enabled){iweufwhi(enabled);},function(){});
EndProcedure
GetPicture("FRONT")
GetAccessPoints()