Xrm.Device (Client API reference)

Provides methods to use native device capabilities.

Method Description
captureAudio Invokes the device microphone to record audio.
captureImage Invokes the device camera to capture an image.
captureVideo Invokes the device camera to record video.
getBarcodeValue Invokes the device camera to scan the barcode information, such as a product number.
getCurrentPosition Returns the current location using the device geolocation capability.
pickFile Opens a dialog box to select files for the upload.

Client API Xrm object