Location Availability

If the location and the heading are available (depending on the device capabilities and the user confirmation)

const onLocationAvailabilityChange = (value: boolean, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.mobile.locationAvailability.subscribe(onLocationAvailabilityChange);
COBI.mobile.locationAvailability.unsubscribe(onLocationAvailabilityChange);

Last updated