Quantcast
Channel: HTML5
Viewing all articles
Browse latest Browse all 663

Intel XDK Name Space API Plugin Details for Cordova Build Containers

$
0
0

Intel XDK Name Space API Plugin Details for Cordova Build Containers

The title of each API section in this document contains a link that will take you directly to a more detailed intel.xdk API documentation page for that specific plugin. The Intel XDK plugins described on this page represent the intel.xdk APIs that are present when using the Cordova build system. For detailed documentation regarding the "legacy" build system, please see the Intel XDK JavaScript Bridge API documentation page.

Note that the APIs listed below augment the standard Cordova APIs, both APIs can and should be used in your application. In some cases there is overlap between the Cordova APIs and the intel.xdk APIs; in that case, we recommend you use the Cordova API first and then use the intel.xdk API when the Cordova API either does not provide the desired functionality or provides inadequate functionality. Do not mix overlapping APIs within your application; in other words, use only the Cordova accelerometer API or the intel.xdk accelerometer API in your app, do not use both in the same app. This overlap between two similar device APIs exists for historical reasons and is not recommended for normal use.

APIs marked as "pending" in the notes section are still under development or have not been fully tested. APIs marked as "removed" are not present in the Cordova build system but may still exist in the standard "Intel XDK" build containers and may also be supported by the Emulator tab within the Intel XDK (see this list of APIs that are not supported by the Emulator).

To include these APIs as part of your application you must include a reference to "cordova.js" in your index.html file. In your Cordova build configuration file you also need to include a reference to each plugin required by the API(s) you are using by "value" and "name" where "value" is the title of each API section below (e.g., intel.xdk.accelerometer) and "name" is the last segment of that title (e.g., accelerometer), unless indicated otherwise. See Using the Intel XDK "Cordova for *" Build Option for detailed information.

intel.xdk.base DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. Please use the equivalent standard Cordova "deviceready" event and Cordova device plugin instead. NOTE: the Cordova "deviceready" event is built into the Cordova framework and does not require any plugins to be detected.

See the the standard Cordova splashscreen plugin for an alternative to the intel.xdk splashscreen functions.

Additional documentation will be provided, at a later date, for alternatives to the platform detection properties and the web root function.

API ObjectAPI TypeNotes
intel.xdk.device.hideSplashScreenmethod
intel.xdk.device.showSplashScreenmethod
intel.xdk.appproperty
intel.xdk.isamazonproperty
intel.xdk.ischromeproperty
intel.xdk.isfacebookproperty
intel.xdk.isgoogleproperty
intel.xdk.isintelproperty
intel.xdk.ismozillaproperty
intel.xdk.isnativeproperty
intel.xdk.isnookproperty
intel.xdk.isphoneproperty
intel.xdk.istabletproperty
intel.xdk.istestproperty
intel.xdk.iswebproperty
intel.xdk.iswin8property
intel.xdk.iswp8property
intel.xdk.isxdkproperty
intel.xdk.jsVersionproperty
intel.xdk.webRootproperty
intel.xdk.device.readyevent

intel.xdk.accelerometer DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. Please use the equivalent standard Cordova accelerometer plugin instead.

API ObjectAPI TypeNotes
intel.xdk.accelerometer.clearWatchmethod
intel.xdk.accelerometer.getCurrentAccelerationmethod
intel.xdk.accelerometer.watchAccelerationmethod

intel.xdk.audio

For playing and recording audio elements.

API ObjectAPI TypeNotes
intel.xdk.audio.startPlayingmethodundocumented
intel.xdk.audio.stopPlayingmethodundocumented
intel.xdk.audio.pausePlayingmethodundocumented
intel.xdk.audio.continuePlayingmethodundocumented
intel.xdk.audio.stopRecordingmethodundocumented
intel.xdk.audio.pauseRecordingmethodundocumented, compatibility placeholder
intel.xdk.audio.startRecordingmethodundocumented
intel.xdk.audio.addSoundmethodundocumented, compatibility placeholder
intel.xdk.audio.continueRecordingmethodundocumented, compatibility placeholder
intel.xdk.audio.deleteRecordingmethodundocumented
intel.xdk.audio.clearRecordingsmethodundocumented
intel.xdk.audio.getRecordingListmethodundocumented
intel.xdk.audio.getRecordingURLmethodundocumented
intel.xdk.audio.play.stopeventundocumented
intel.xdk.audio.play.starteventundocumented
intel.xdk.audio.play.pauseeventundocumented
intel.xdk.audio.play.busyeventundocumented
intel.xdk.audio.play.erroreventundocumented
intel.xdk.audio.play.continueeventundocumented
intel.xdk.audio.record.removedeventundocumented
intel.xdk.audio.record.notRemovedeventundocumented
intel.xdk.audio.record.cleareventundocumented
intel.xdk.audio.continue.notsupportedeventundocumented, compatibility placeholder
intel.xdk.audio.pause.notsupportedeventundocumented, compatibility placeholder
intel.xdk.audio.record.starteventundocumented
intel.xdk.audio.record.busyeventundocumented
intel.xdk.audio.record.erroreventundocumented
intel.xdk.audio.record.stopeventundocumented

intel.xdk.cache

For persistent caching of data between application sessions.

API ObjectAPI TypeNotes
intel.xdk.cache.addToMediaCachemethod
intel.xdk.cache.addToMediaCacheExtmethod
intel.xdk.cache.clearAllCookiesmethod
intel.xdk.cache.clearMediaCachemethod
intel.xdk.cache.getCookiemethod
intel.xdk.cache.getCookieListmethod
intel.xdk.cache.getMediaCacheListmethod
intel.xdk.cache.getMediaCacheLocalURLmethodpending
intel.xdk.cache.getMediaCacheRelativePathmethodpending, undocumented
intel.xdk.cache.removeCookiemethod
intel.xdk.cache.removeFromMediaCachemethod
intel.xdk.cache.setCookiemethod
intel.xdk.cache.media.addevent
intel.xdk.cache.media.clearevent
intel.xdk.cache.media.removeevent
intel.xdk.cache.media.updateevent

intel.xdk.camera

For capturing images with the camera and accessing those images.

API ObjectAPI TypeNotes
intel.xdk.camera.clearPicturesmethod
intel.xdk.camera.deletePicturemethod
intel.xdk.camera.getPictureListmethod
intel.xdk.camera.getPictureURLmethod
intel.xdk.camera.importPicturemethod
intel.xdk.camera.takeFrontPicturemethodundocumented, identical to takePicture
intel.xdk.camera.takePicturemethod
intel.xdk.camera.picture.addevent
intel.xdk.camera.picture.busyevent
intel.xdk.camera.picture.cancelevent
intel.xdk.camera.picture.clearevent
intel.xdk.camera.picture.removeevent

intel.xdk.contacts

For access to the on-device contacts database.

API ObjectAPI TypeNotes
intel.xdk.contacts.addContactmethod
intel.xdk.contacts.chooseContactmethod
intel.xdk.contacts.editContactmethod
intel.xdk.contacts.getContactDatamethod
intel.xdk.contacts.getContactListmethod
intel.xdk.contacts.getContactsmethod
intel.xdk.contacts.removeContactmethod
intel.xdk.contacts.addevent
intel.xdk.contacts.busyevent
intel.xdk.contacts.chooseevent
intel.xdk.contacts.editevent
intel.xdk.contacts.getevent
intel.xdk.contacts.removeevent

intel.xdk.device

Configure the device and/or retrieve information pertinent to the device.

API ObjectAPI TypeNotes
intel.xdk.device.addRemoteScriptmethod
intel.xdk.device.addVirtualPagemethod
intel.xdk.device.blockRemotePagesmethodremoved
intel.xdk.device.closeRemoteSitemethod
intel.xdk.device.copyToClipboardmethod
intel.xdk.device.getRemoteDatamethod
intel.xdk.device.getRemoteDataExtmethod
intel.xdk.device.getRemoteDataWithIDmethod
intel.xdk.device.hideStatusBarmethod
intel.xdk.device.launchExternalmethod
intel.xdk.device.mainViewExecutemethod
intel.xdk.device.managePowermethod
intel.xdk.device.removeVirtualPagemethod
intel.xdk.device.runInstallNativeAppmethodremoved
intel.xdk.device.scanBarcodemethod
intel.xdk.device.sendEmailmethod
intel.xdk.device.sendSMSmethod
intel.xdk.device.setAutoRotatemethod
intel.xdk.device.setBasicAuthenticationmethod
intel.xdk.device.setRotateOrientationmethod
intel.xdk.device.showRemoteSitemethod
intel.xdk.device.showRemoteSiteExtmethod
intel.xdk.device.updateConnectionmethod
intel.xdk.device.connectionproperty
intel.xdk.device.hasCachingproperty
intel.xdk.device.hasStreamingproperty
intel.xdk.device.initialOrientationproperty
intel.xdk.device.lastStationproperty
intel.xdk.device.modelproperty
intel.xdk.device.orientationproperty
intel.xdk.device.osversionproperty
intel.xdk.device.phonegapversionproperty
intel.xdk.device.platformproperty
intel.xdk.device.queryStringproperty
intel.xdk.device.uuidproperty
intel.xdk.device.barcode.scanevent
intel.xdk.device.connection.updateevent
intel.xdk.device.continueevent
intel.xdk.device.hardware.backevent
intel.xdk.device.orientation.changeevent
intel.xdk.device.pauseevent
intel.xdk.device.remote.blockevent
intel.xdk.device.remote.closeevent
intel.xdk.device.remote.dataevent
intel.xdk.device.resumeevent
intel.xdk.device.suspendevent

intel.xdk.display DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. Please use the meta viewport tag.

The following articles are worth reviewing:

Additional alternatives will be provided at a later date.

API ObjectAPI TypeNotes
intel.xdk.display.lockViewportWindowmethod
intel.xdk.display.startARmethod
intel.xdk.display.stopARmethod
intel.xdk.display.useViewportmethod
intel.xdk.display.window.landheightproperty
intel.xdk.display.window.landwidthproperty
intel.xdk.display.window.portheightproperty
intel.xdk.display.window.portwidthproperty

intel.xdk.facebook DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. A suggested alternative Cordova plugin for use on Android and iOS platforms is available as a third-party plugin. Coverage for all platforms is available using this JavaScript micro library (this is not a plugin). In addition, a general-purpose OAuth2 JavaScript library (no plugin required) named "HelloJS" can be used to log into Facebook (as well as a variety of other services).

API ObjectAPI TypeNotes
intel.xdk.facebook.enableFrictionlessRequestsmethod
intel.xdk.facebook.loginmethod
intel.xdk.facebook.logoutmethod
intel.xdk.facebook.requestWithGraphAPImethod
intel.xdk.facebook.requestWithRestAPImethoddeprecated, performs a null action
intel.xdk.facebook.showAppRequestDialogmethod
intel.xdk.facebook.showNewsFeedDialogmethod
intel.xdk.facebook.busyevent
intel.xdk.facebook.dialog.completeevent
intel.xdk.facebook.dialog.failevent
intel.xdk.facebook.loginevent
intel.xdk.facebook.logoutevent
intel.xdk.facebook.request.responseevent
intel.xdk.facebook.session.invalidateevent

intel.xdk.file

For uploading files to an appropriately configured server.

API ObjectAPI TypeNotes
intel.xdk.file.cancelUploadmethod
intel.xdk.file.uploadToServermethod
intel.xdk.file.uploadevent
intel.xdk.file.upload.busyevent
intel.xdk.file.upload.cancelevent

intel.xdk.geolocation DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. Please use the equivalent standard Cordova geolocation plugin instead.

API ObjectAPI TypeNotes
intel.xdk.geolocation.clearWatchmethod
intel.xdk.geolocation.getCurrentPositionmethod
intel.xdk.geolocation.watchPositionmethod

intel.xdk.notification DEPRECATED

This Intel XDK Cordova plugin and API has been deprecated. Please use the equivalent standard Cordova notification plugins instead. NOTE: there are two notification plugins, named "Dialogs" and "Vibration."

API ObjectAPI TypeNotes
intel.xdk.notification.alertmethod
intel.xdk.notification.beepmethod
intel.xdk.notification.confirmmethod
intel.xdk.notification.hideBusyIndicatormethod
intel.xdk.notification.showBusyIndicatormethod
intel.xdk.notification.vibratemethod
intel.xdk.notification.confirmeventundocumented
intel.xdk.notification.confirm.busyeventundocumented

intel.xdk.player

For playing audio and video media files and streams.

API ObjectAPI TypeNotes
intel.xdk.player.setAudioVolumemethodundocumented
intel.xdk.player.clearAudioCurrentTimeWatchmethod
intel.xdk.player.ffwdmethodremoved
intel.xdk.player.hidemethodremoved
intel.xdk.player.loadSoundmethod
intel.xdk.player.pausemethodremoved
intel.xdk.player.playmethodremoved
intel.xdk.player.playPodcastmethod
intel.xdk.player.playSoundmethod
intel.xdk.player.rewindmethodremoved
intel.xdk.player.setAudioCurrentTimemethod
intel.xdk.player.setColorsmethodremoved
intel.xdk.player.setPositionmethodremoved
intel.xdk.player.showmethodremoved
intel.xdk.player.startAudiomethod
intel.xdk.player.startShoutcastmethod
intel.xdk.player.startStationmethodremoved
intel.xdk.player.stopmethodremoved
intel.xdk.player.stopAudiomethod
intel.xdk.player.toggleAudiomethod
intel.xdk.player.unloadAllSoundsmethod
intel.xdk.player.unloadSoundmethod
intel.xdk.player.volumemethod
intel.xdk.player.watchAudioCurrentTimemethod
intel.xdk.player.audioInfo.currentTimeproperty
intel.xdk.player.audioInfo.durationproperty
intel.xdk.player.audio.busyevent
intel.xdk.player.audio.currenttime.setevent
intel.xdk.player.audio.errorevent
intel.xdk.player.audio.startevent
intel.xdk.player.audio.stopevent
intel.xdk.player.audio.volume.seteventundocumented
intel.xdk.player.sound.loadeventundocumented
intel.xdk.player.sound.unloadeventundocumented
intel.xdk.player.hideeventremoved
intel.xdk.player.showeventremoved
intel.xdk.player.podcast.busyevent
intel.xdk.player.podcast.errorevent
intel.xdk.player.podcast.startevent
intel.xdk.player.podcast.stopevent
intel.xdk.player.shoutcast.busyevent
intel.xdk.player.shoutcast.errorevent
intel.xdk.player.shoutcast.pauseevent
intel.xdk.player.shoutcast.playevent
intel.xdk.player.shoutcast.startevent
intel.xdk.player.shoutcast.stopevent
intel.xdk.player.sound.erroreventiOS only
intel.xdk.player.station.busyeventremoved
intel.xdk.player.station.erroreventremoved
intel.xdk.player.station.pauseeventremoved
intel.xdk.player.station.playeventremoved
intel.xdk.player.station.starteventremoved
intel.xdk.player.station.stopeventremoved
intel.xdk.player.track.changeeventremoved

Viewing all articles
Browse latest Browse all 663


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>