A location can consist of a latitude, longitude, timestamp and other information such as bearing, altitude and velocity.
const onLocationChange = (value: Location, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.mobile.location.read(onLocationChange); // Instantly get the current value
COBI.mobile.location.subscribe(onLocationChange);
COBI.mobile.location.unsubscribe(onLocationChange);
const onLocationChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.mobile.location.read(onLocationChange); // Instantly get the current value
COBI.mobile.location.subscribe(onLocationChange);
COBI.mobile.location.unsubscribe(onLocationChange);