journey.hardware
Property
Description
Example
Examples
journey.hardware.getCurrentLocation
journey.hardware.getCurrentLocationasync function init() {
var currentLocation = await journey.hardware.getCurrentLocation();
console.log(currentLocation);
// {latitude: -33.9002979, longitude: 18.847503, altitude: undefined, horizontal_accuracy: 28.622, vertical_accuracy: undefined, timestamp: "2022-10-31T09:48:21Z"}
}journey.hardware.scanBarcode
journey.hardware.scanBarcodeasync function scanBarcode() {
view.barcode = await journey.hardware.scanBarcode({types: ['QR_CODE']});
}Last updated