Quantcast
Channel: Intermédiaire
Viewing all articles
Browse latest Browse all 677

Intel XDK Name Space API Plugin Details for Cordova Build Containers

$
0
0
The title of each API section below contains a link that will take you directly to the appropriate section of the intel.xdk API documentation.

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

The properties in this plugin are useful for writing device-dependent code fragments. In addition to the properties provided here, there are two methods and one event included with this plugin, they are the "bare minimum" required to get your Cordova container up and running quickly. Note that the methods and events included in this plugin have equivalents in the core Cordova plugins, which are recommended for new applications. The methods and events are provided here to support existing XDK applications and to minimize application permission requirements (this plugin requires no special permission).

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

For reading the device accelerometer.

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.takeFrontPicturemethodpending, undocumented, 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

For controlling aspects of the device's display.

API ObjectAPI TypeNotes
intel.xdk.display.lockViewportWindowmethodpending
intel.xdk.display.startARmethodpending
intel.xdk.display.stopARmethodpending
intel.xdk.display.useViewportmethodpending
intel.xdk.display.window.landheightpropertypending
intel.xdk.display.window.landwidthpropertypending
intel.xdk.display.window.portheightpropertypending
intel.xdk.display.window.portwidthpropertypending

intel.xdk.facebook

For access to an end-user's Facebook account.

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

For access to the device location tracking hardware.

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

intel.xdk.multitouch

To enable device multi-touch features on Android devices.

API ObjectAPI TypeNotes
intel.xdk.multitouch.enablemethodpending

intel.xdk.notification

Provides device-specific alerts.

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.playPodcastmethodpending
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.startShoutcastmethodpending
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.volumemethodpending
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.busyeventpending
intel.xdk.player.podcast.erroreventpending
intel.xdk.player.podcast.starteventpending
intel.xdk.player.podcast.stopeventpending
intel.xdk.player.shoutcast.busyeventpending
intel.xdk.player.shoutcast.erroreventpending
intel.xdk.player.shoutcast.pauseeventpending
intel.xdk.player.shoutcast.playeventpending
intel.xdk.player.shoutcast.starteventpending
intel.xdk.player.shoutcast.stopeventpending
intel.xdk.player.sound.erroreventpending, iOS 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 677

Trending Articles



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