Heading

Represents the direction the device is hold in degrees, where 0 degrees is true North

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

COBI.mobile.location.subscribe(onHeadingChange);
COBI.mobile.location.unsubscribe(onHeadingChange);

Last updated